PHP code example of 8891 / laravel-route-json
1. Go to this page and download the library: Download 8891/laravel-route-json 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/ */
8891 / laravel-route-json example snippets
'providers' => [
...
'T8891\RouteJson\RouteJsonServiceProvider',
]
$app->register(T8891\RouteJson\RouteJsonServiceProvider::class);
// OR
$app->register('T8891\RouteJson\RouteJsonServiceProvider');
return [
"extra" => [
"/assets"
]
];
config/app.php
bootstrap/app.php
bash
php artisan route:json
config/routejson.php