A package that allows you to have hooks and plugins for your laravel application
Wordpress style hooks and plugins for laravel
composer require iambib/laravel-hooks
config/app.php
'providers' => [
...
iAmBiB\Hooks\Providers\HookServiceProvider::class,
]
'aliases' => [
...
'Hooks' => iAmBiB\Hooks\Facades\Hooks::class,
]
php artisan vendor:publish --tag=iambib-hooks
See the demo plugin in app/Plugins to execute a hook
execute_hook('hook_name')