wip
This commit is contained in:
1 parent
003b2c7372
commit
717a993bd6
9 files changed
+37
-58
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user