Announcement.php 557 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Builder;
  4. class Announcement extends Model
  5. {
  6. protected $guarded = [];
  7. // public static function boot()
  8. // {
  9. // parent::boot();
  10. // static::addGlobalScope('merchant', function (Builder $builder) {
  11. // $merchant_id = merchant_id();
  12. // if ($merchant_id) {
  13. // return $builder->where('merchant_id', merchant_id());
  14. // }
  15. // return $builder;
  16. // });
  17. // }
  18. const STATUS_OK = 1;
  19. const STATUS_NO = 0;
  20. }