hosseinsheikh/advanced-multifunction-facade

v3.0.0 2023-02-25 09:08 UTC

This package is not auto-updated.

Last update: 2024-05-04 15:02:02 UTC


README

laravel-logolockup-cmyk-red.svg

advanced-multifunction-facade

You can control user access from outside the called method, and you can also add listener classes before and after the method is called.

How to install this facade?

composer require hosseinsheikh/advanced-multifunction-facade

How to use this 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