Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel global scope

protected static function boot()
    {
        parent::boot();
  
        static::addGlobalScope(new ArchiveScope);
    }
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #global #scope
ADD COMMENT
Topic
Name
1+2 =