Skip to content

Commit

Permalink
Remove namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
chinleung committed May 11, 2021
1 parent ead0b3f commit 227a0b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public function map()
protected function mapWebRoutes()
{
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
}

Expand All @@ -68,7 +67,6 @@ protected function mapApiRoutes()
{
Route::prefix('api')
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
}
}
8 changes: 5 additions & 3 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php

use App\Http\Controllers\ShowDemoPageController;
use App\Http\Controllers\ShowUserController;
use Illuminate\Support\Facades\Route;

Route::multilingual('/', 'ShowDemoPageController')->name('home');
Route::multilingual('test', 'ShowDemoPageController');
Route::multilingual('show-user', 'ShowUserController')->name('user.show');
Route::multilingual('/', ShowDemoPageController::class)->name('home');
Route::multilingual('test', ShowDemoPageController::class);
Route::multilingual('show-user', ShowUserController::class)->name('user.show');

0 comments on commit 227a0b7

Please sign in to comment.