luna / laravel-seo-urls
Create SEO friendly urls/routes
Installs: 62
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/luna/laravel-seo-urls
Requires
- illuminate/database: ^5.8
- illuminate/support: ^5.8
This package is auto-updated.
Last update: 2025-09-18 22:47:55 UTC
README
Setup
Add the service provider to the providers in config/app.php
AFTER the RouteServiceProvider.
Luna\SeoUrls\SeoUrlServiceProvider::class
Add the following code to app/Http/Kernel.php
/** * Get the route dispatcher callback. * * @return \Closure */ protected function dispatchToRouter() { $this->router = $this->app->make('router'); foreach ($this->routeMiddleware as $key => $middleware) { $this->router->aliasMiddleware($key, $middleware); } foreach ($this->middlewareGroups as $key => $middleware) { $this->router->middlewareGroup($key, $middleware); } return parent::dispatchToRouter(); }