PHP code example of inmanturbo / plugins
1. Go to this page and download the library: Download inmanturbo/plugins 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/ */
inmanturbo / plugins example snippets
// config for Inmanturbo/Plugins
use Inmanturbo\Plugins\PluginFlags;
return [
'default' => $fallback = PluginFlags::FALLBACK,
'options' => [
// 'layout' => env('LAYOUT_PLUGIN'),
],
'enabled' => [
// 'layout' => PluginFlags::get('layout', $fallback),
],
'resolvers' => [
//
]
];
bash
php artisan vendor:publish --tag="plugins-config"