This commit is contained in:
salam committed 2025-11-19 07:37:25 +01:00
1 parent 003b2c7372
commit 717a993bd6
9 files changed
+37 -58

No files matched your search

+12
View File
@@ -2,6 +2,8 @@
namespace App\Providers;
use BezhanSalleh\FilamentShield\Commands;
use BezhanSalleh\FilamentShield\Facades\FilamentShield;
use Carbon\Carbon;
use Filament\Support\Colors\Color;
use Filament\Support\Facades\FilamentColor;
@@ -27,6 +29,16 @@ class AppServiceProvider extends ServiceProvider
{
Carbon::setLocale(app()->getLocale());
// individually prohibit commands
// Commands\GenerateCommand::prohibit($this->app->isProduction());
// Commands\InstallCommand::prohibit($this->app->isProduction());
// Commands\PublishCommand::prohibit($this->app->isProduction());
// Commands\SetupCommand::prohibit($this->app->isProduction());
// Commands\SeederCommand::prohibit($this->app->isProduction());
// Commands\SuperAdminCommand::prohibit($this->app->isProduction());
// or prohibit the above commands all at once
FilamentShield::prohibitDestructiveCommands($this->app->isProduction());
FilamentColor::register([
'danger' => Color::Red,
'gray' => Color::Zinc,