123456789101112131415161718192021222324252627 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Builder;
- class Announcement extends Model
- {
- protected $guarded = [];
- // public static function boot()
- // {
- // parent::boot();
- // static::addGlobalScope('merchant', function (Builder $builder) {
- // $merchant_id = merchant_id();
- // if ($merchant_id) {
- // return $builder->where('merchant_id', merchant_id());
- // }
- // return $builder;
- // });
- // }
- const STATUS_OK = 1;
- const STATUS_NO = 0;
- }
|