Skip to content

Commit 11e8bd2

Browse files
committed
fix(routes): Update route namespace in web.php
- Update the 'as' parameter in the route configuration - Add conditional logic for determining the 'as' parameter value - Set 'as' to 'soar.bar' if Lumen framework is being used
1 parent 6964e05 commit 11e8bd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
['namespace' => 'Guanguans\LaravelSoar\Http\Controllers'] + (array) config('soar.route', [
1717
'prefix' => 'soar-bar',
1818
'domain' => null,
19-
'as' => 'soar.bar.',
19+
'as' => is_lumen() ? 'soar.bar' : 'soar.bar.',
2020
'middleware' => [],
2121
]),
2222
static function ($router): void {

src/SoarServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public function register(): void
6666
*/
6767
public function boot(): void
6868
{
69-
$this->registerCommands();
7069
$this->loadRoutes();
70+
$this->registerCommands();
7171

7272
if (config('soar.enabled', false)) {
7373
$this->app->make(Bootstrapper::class)->boot();

0 commit comments

Comments
 (0)