Changes
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Models\Post;
|
||||
use App\Observers\PostObserver;
|
||||
use Carbon\Carbon;
|
||||
use Filament\Facades\Filament;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -27,6 +27,7 @@ class AdminPanelProvider extends PanelProvider
|
||||
->default()
|
||||
->id('admin')
|
||||
->path('admin')
|
||||
->registration()
|
||||
->login()
|
||||
->databaseNotifications()
|
||||
->databaseNotificationsPolling('5s')
|
||||
@@ -55,8 +56,9 @@ class AdminPanelProvider extends PanelProvider
|
||||
])
|
||||
->authMiddleware([
|
||||
Authenticate::class,
|
||||
]
|
||||
)
|
||||
;
|
||||
])
|
||||
->plugins([
|
||||
\BezhanSalleh\FilamentShield\FilamentShieldPlugin::make()
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,9 +26,10 @@ class DashboardPanelProvider extends PanelProvider
|
||||
->id('dashboard')
|
||||
->path('dashboard')
|
||||
->colors([
|
||||
'primary' => Color::Indigo,
|
||||
'primary' => Color::Amber,
|
||||
])
|
||||
->discoverResources(in: app_path('Filament/Dashboard/Resources'), for: 'App\\Filament\\Dashboard\\Resources')
|
||||
->login()
|
||||
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
|
||||
->discoverPages(in: app_path('Filament/Dashboard/Pages'), for: 'App\\Filament\\Dashboard\\Pages')
|
||||
->pages([
|
||||
Pages\Dashboard::class,
|
||||
@@ -51,6 +52,9 @@ class DashboardPanelProvider extends PanelProvider
|
||||
])
|
||||
->authMiddleware([
|
||||
Authenticate::class,
|
||||
])
|
||||
->plugins([
|
||||
\BezhanSalleh\FilamentShield\FilamentShieldPlugin::make()
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user