mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-16 09:44:06 +00:00
Move Bouncer DefaultScope from app/Bouncer to app/Support/BouncerDefaultScope
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Bouncer\Scopes\DefaultScope;
|
||||
use App\Policies\CompanyPolicy;
|
||||
use App\Policies\CustomerPolicy;
|
||||
use App\Policies\DashboardPolicy;
|
||||
@@ -20,6 +19,7 @@ use App\Policies\RolePolicy;
|
||||
use App\Policies\SettingsPolicy;
|
||||
use App\Policies\UserPolicy;
|
||||
use App\Services\Installation\InstallUtils;
|
||||
use App\Support\BouncerDefaultScope;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Broadcast;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
@@ -78,7 +78,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
BouncerModels::scope(new DefaultScope);
|
||||
BouncerModels::scope(new BouncerDefaultScope);
|
||||
}
|
||||
|
||||
public function addMenus()
|
||||
|
||||
Reference in New Issue
Block a user