PHP code example of collinped / laravel-rest-hooks
1. Go to this page and download the library: Download collinped/laravel-rest-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/ */
collinped / laravel-rest-hooks example snippets
return [
];
bash
php artisan vendor:publish --provider="Collinped\LaravelRestHooks\Providers\LaravelRestHooksServiceProvider" --tag="migrations"
php artisan migrate
bash
php artisan vendor:publish --provider="Collinped\LaravelRestHooks\Providers\LaravelRestHooksServiceProvider" --tag="config"
php
use Collinped\LaravelRestHooks\RestHook;
$restHook = RestHook::forUser(auth()->user()->id())>find($id);