PHP code example of huynt57 / laravel-singletonize
1. Go to this page and download the library: Download huynt57/laravel-singletonize 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/ */
huynt57 / laravel-singletonize example snippets
'providers' => [
Huynt57\LaravelSingletonize\SingletonizeServiceProvider::class,
],
return [
'enabled' => true,
];
bash
php artisan vendor:publish --tag=config --provider="Huynt57\\LaravelSingletonize\\SingletonizeServiceProvider"