如何解决您无权访问此资源。 Ubuntu Laravel?

时间:2021-01-07 11:39:14

标签: laravel ubuntu apache2

我正在开发 laravel 8,但遇到了奇怪的问题。项目在 8 小时前运行良好,但现在我面临问题您无权访问此资源。我的路由文件是。

Route::get('language/{key}', [SwitchLanguageController::class, 'switchLanguage'])->name('language');
Route::get('register', [RegisterController::class, 'showRegistrationForm'])->name('register')->middleware(['otpVerify']);
Auth::routes();
Route::group(['middleware' => 'auth'], function (){
Route::get('/404', [\App\Http\Controllers\ErrorController::class, 'notFound'])->name('404');
Route::get('/', [DashboardController::class, 'index'])->name('dashboard');

Route::get('profile/show', [AuthenticationController::class, 'profile'])->name('profile.show');

Route::get('/invoices', [InvoiceController::class, 'index'])->name('invoice');
});

当我在本地服务器上点击路由 http://www.ereciept.com/invoices/ 时,我遇到了这个问题。 enter image description here

0 个答案:

没有答案