Skip to content

Commit accc930

Browse files
fix route priority
Now the routes should be registered with the ```registerRoutes``` method.
1 parent b4dbdaa commit accc930

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/LaravelUniqueSluggable.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44

55
class LaravelUniqueSluggable
66
{
7-
8-
}
7+
8+
public function registerRoute()
9+
{
10+
require __DIR__ . DIRECTORY_SEPARATOR . 'routes.php';
11+
}
12+
}

src/LaravelUniqueSluggableServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function boot(): void
1616
// $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'oguzcandemircan');
1717
// $this->loadViewsFrom(__DIR__.'/../resources/views', 'oguzcandemircan');
1818
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
19-
$this->loadRoutesFrom(__DIR__.'/routes.php');
19+
// $this->loadRoutesFrom(__DIR__.'/routes.php');
2020

2121
// Publishing is only necessary when using the CLI.
2222
if ($this->app->runningInConsole()) {

0 commit comments

Comments
 (0)