Files
vito/config/route-attributes.php
Saeed Vaziry 131b828807 Plugins base (#613)
* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
2025-06-14 14:35:18 +02:00

50 lines
1.4 KiB
PHP

<?php
use Illuminate\Routing\Middleware\SubstituteBindings;
return [
/*
* Automatic registration of routes will only happen if this setting is `true`
*/
'enabled' => true,
/*
* Controllers in these directories that have routing attributes
* will automatically be registered.
*
* Optionally, you can specify group configuration by using key/values
*/
'directories' => [
app_path('Http/Controllers') => [
'prefix' => '',
'middleware' => 'web',
'patterns' => ['*Controller.php'],
'not_patterns' => ['API/*'],
],
app_path('Http/Controllers/API') => [
'prefix' => '',
'middleware' => 'api',
'patterns' => ['*Controller.php'],
'not_patterns' => [],
],
],
/*
* This middleware will be applied to all routes.
*/
'middleware' => [
SubstituteBindings::class,
],
/*
* When enabled, implicitly scoped bindings will be enabled by default.
* You can override this behaviour by using the `ScopeBindings` attribute, and passing `false` to it.
*
* Possible values:
* - null: use the default behaviour
* - true: enable implicitly scoped bindings for all routes
* - false: disable implicitly scoped bindings for all routes
*/
'scope-bindings' => null,
];