creativitykills / filament-artisan
Simple but yet powerful library for running some artisan commands for FilamentPHP
Package info
github.com/CreativityKills/filament-artisan
pkg:composer/creativitykills/filament-artisan
Fund package maintenance!
Requires
- php: ^8.2|^8.3|^8.4
- calebporzio/sushi: *
- filament/filament: ^4.0
- spatie/laravel-package-tools: ^1.19
- tomatophp/console-helpers: ^1.1
- tomatophp/filament-developer-gate: ^4.0
README
Simple but yet powerful library for running some artisan commands for Filament v4.
Forked from tomatophp/filament-artisan and maintained under the CreativityKills namespace.
Requirements
- PHP ^8.2
- Filament ^4.0
Installation
composer require creativitykills/filament-artisan
Then register the plugin in your panel provider:
->plugin(\CreativityKills\FilamentArtisan\FilamentArtisanPlugin::make())
Running commands
By default, you can access this page only in local environment. If you wish
you can change the local key in config.
Simply go to http://your-domain.com/PANEL/artisan and here we go!
Select a command from the list, fill in arguments and options/flags, and hit run.
Configuration
Publish the config file:
php artisan vendor:publish --tag="filament-artisan-config"
Key options in config/filament-artisan.php:
local(bool) — restrict to local environment onlydeveloper_gate(bool) — enable developer password gatecommands— array of command groups defining which commands are exposedpermissions— per-command permission mapping (checked via Laravel Gate)navigation— controls nav group, icon, visibilitydefer— control deferred loading of table filters and column manager
Publish Assets
Publish views:
php artisan vendor:publish --tag="filament-artisan-views"
Publish translations:
php artisan vendor:publish --tag="filament-artisan-lang"