PHP code example of campaigningbureau / critical-laravel-routes
1. Go to this page and download the library: Download campaigningbureau/critical-laravel-routes 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/ */
campaigningbureau / critical-laravel-routes example snippets
Route::get('/', ['as' => 'index', 'uses' => 'ViewController@index', 'critical' => true]);
shell
php artisan critical-urls:generate
shell
$ php artisan vendor:publish --provider="CampaigningBureau\CriticalLaravelRoutes\CriticalLaravelRoutesServiceProvider"