PHP code example of mostafaznv / nova-laracache
1. Go to this page and download the library: Download mostafaznv/nova-laracache 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/ */
mostafaznv / nova-laracache example snippets
namespace App\Providers;
use Laravel\Nova\NovaApplicationServiceProvider;
use Mostafaznv\NovaLaraCache\NovaLaraCache;
class NovaServiceProvider extends NovaApplicationServiceProvider
{
public function tools(): array
{
return [
new NovaLaraCache
];
}
}
shell
php artisan vendor:publish --provider="Mostafaznv\NovaLaraCache\NovaLaraCacheServiceProvider"