You can control user access from outside the called method, and you can also add listener classes before and after the method is called.
composer require hosseinsheikh/advanced-multifunction-facade
-
Create simple Facade:
php artisan palpalasi:make-facade {Facade name}
-
Create simple Facade with check authorization:
php artisan palpalasi:make-facade {Facade name} {option}
-
All options are:
- -a or --authorize
- -c or --calling
- -f or --full or -a && -c or --authorize && --calling
- -h or --help
-
If you use the Facade name without the 'Facade' word in a command, this will be appended to the end of Facade name