diff options
Diffstat (limited to 'infrastructure/Http/RouteServiceProvider.php')
-rw-r--r-- | infrastructure/Http/RouteServiceProvider.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/infrastructure/Http/RouteServiceProvider.php b/infrastructure/Http/RouteServiceProvider.php new file mode 100644 index 0000000..a17d253 --- /dev/null +++ b/infrastructure/Http/RouteServiceProvider.php @@ -0,0 +1,23 @@ +<?php + +namespace Infrastructure\Http; + +use Illuminate\Routing\Router; +use Optimus\Api\System\RouteServiceProvider as ServiceProvider; + +class RouteServiceProvider extends ServiceProvider +{ + /** + * Define your route model bindings, pattern filters, etc. + * + * @return void + */ + public function boot() + { + $router = $this->app->make(Router::class); + + $router->pattern('id', '[0-9]+'); + + parent::boot($router); + } +} |