PHP code example of angus-mcritchie / blade-boost-directive
1. Go to this page and download the library: Download angus-mcritchie/blade-boost-directive 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/ */
angus-mcritchie / blade-boost-directive example snippets
// get the real cache key @boost uses
$key = \AngusMcRitchie\BladeBoostDirective\Boost::prefix('my-key');
cache()->store('array')->forget($key);
return [
/**
* Enable or disable the package.
* If disabled, the package will not register any Blade directives.
*/
'enabled' => env('BLADE_BOOST_ENABLED', true),
/**
* The default cache store to use.
* This is used when no cache store is specified in the directive.
*/
'default_cache_store' => env('BLADE_BOOST_DIRECTIVE_DEFAULT_CACHE_STORE', 'array'),
/**
* The prefix to use for cache keys.
* This is used to avoid key collisions with other packages or parts of your application.
*/
'prefix' => env('BLADE_BOOST_DIRECTIVE_PREFIX', 'blade-boost-directive.'),
];