PHP code example of iambib / laravel-hooks

1. Go to this page and download the library: Download iambib/laravel-hooks library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

iambib / laravel-hooks example snippets


	'providers'       => [
	    ...
	    iAmBiB\Hooks\Providers\HookServiceProvider::class,
	]
	'aliases'       => [
	    ...
	    'Hooks' => iAmBiB\Hooks\Facades\Hooks::class,
	]

    execute_hook('hook_name')
shell
    php artisan vendor:publish --tag=iambib-hooks