Note
Publishing the package assets is optional and you are not required to do this if you don't need to.
You may run the following command to publish the configuration file.
php artisan vendor:publish --tag=better-laravel-config
Following is the default configuration file, and you are free to update the values as per your need.
return [
'enable_routes' => env('BETTER_LARAVEL_ENABLE_ROUTES', true),
'web_routes_prefix' => env('BETTER_LARAVEL_WEB_ROUTES_PREFIX', ''),
'api_routes_prefix' => env('BETTER_LARAVEL_API_ROUTES_PREFIX', 'api')
];
Option | Default | Action |
---|---|---|
enable_routes | true | Should the package load the routes from routes/api & routes/web? |
web_routes_prefix | '' | Prefix for registering the routes under routes/web |
api_routes_prefix | '' | Prefix for registering the routes under routes/api |
php artisan vendor:publish --tag=better-laravel-stubs