PHP code example of maximkou / laravel-opcache-clear

1. Go to this page and download the library: Download maximkou/laravel-opcache-clear 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/ */

    

maximkou / laravel-opcache-clear example snippets


// config/app.php
'providers' => [
    ...
    Maximkou\LaravelOpcacheClear\OpcacheClearServiceProvider::class,
    ...
];

// config/app.php
'url' => env('APP_URL', 'http://my-app-url'),
'key' => env('APP_KEY'),

'guzzle_options' => [
    'verify' => false,
]
bash
php artisan opcache:clear
bash
php artisan vendor:publish --provider="Maximkou\LaravelOpcacheClear\OpcacheClearServiceProvider"