1234567891011121314151617181920212223242526272829 |
- <?php
- /**
- * Created by PhpStorm.
- * User: shensong
- * Date: 2020/12/23
- * Time: 16:27
- */
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class MediaConfig extends Model
- {
- protected $table = 'media_config';
- public $timestamps = false;
- protected $hidden = ['is_delete', 'created_at', 'updated_at'];
- /**
- * 成本公司全称下拉
- */
- public static function costCompanys()
- {
- $res = self::select('company')->where('is_delete', 0)->distinct()->pluck('company');
- return $res;
- }
- }
|