Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel without global scope

public function boot()
    {
        parent::boot();

        Route::bind('project', function($id) {
            return AppProject::withoutGlobalScopes()->findOrFail($id);
        });
    }
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #global #scope
ADD COMMENT
Topic
Name
8+3 =