Updated
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\Scopes\StatusScope;
|
||||
use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@ -59,4 +60,8 @@ class Services extends Model
|
||||
public function parent(){
|
||||
return $this->belongsTo(Services::class,'parent_service');
|
||||
}
|
||||
public static function boot(){
|
||||
parent::boot();
|
||||
static::addGlobalScope(new StatusScope());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user