1. Go to this page and download the library: Download agencetwogether/hookshelper 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/ */
agencetwogether / hookshelper example snippets
return [
/*
|--------------------------------------------------------------------------
| Render Hook
|--------------------------------------------------------------------------
| You may customize the render hook used to display the hooks visibility
| toggle button. If null, this will be set to 'global-search.before'.
| The 'panels::' prefix will be added automatically if omitted.
|
*/
'render_hook' => 'global-search.before',
/*
|--------------------------------------------------------------------------
| Icon
|--------------------------------------------------------------------------
| You may select a different Heroicon to display for the hooks visibility
| toggle button. If null, the default will be 'heroicon-m-cursor-arrow-rays'.
|
*/
'icon' => 'heroicon-m-cursor-arrow-rays',
/*
|--------------------------------------------------------------------------
| Minify Button
|--------------------------------------------------------------------------
| Setting this to true will only display a small icon as a toggle button.
| Otherwise, the button will display action label to perform.
|
*/
'tiny_toggle' => false,
];
use Agencetwogether\HooksHelper\HooksHelperPlugin;
...
public function panel(Panel $panel) : Panel
{
return $panel
->plugins([
HooksHelperPlugin::make(),
]);
}