新版订单消耗系统

MediaConfig.php 521B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: shensong
  5. * Date: 2020/12/23
  6. * Time: 16:27
  7. */
  8. namespace App\Models;
  9. use Illuminate\Database\Eloquent\Model;
  10. class MediaConfig extends Model
  11. {
  12. protected $table = 'media_config';
  13. public $timestamps = false;
  14. protected $hidden = ['is_delete', 'created_at', 'updated_at'];
  15. /**
  16. * 成本公司全称下拉
  17. */
  18. public static function costCompanys()
  19. {
  20. $res = self::select('company')->where('is_delete', 0)->distinct()->pluck('company');
  21. return $res;
  22. }
  23. }