I am working on laravel 8 and i am facing strange issue. Project was working fine 8 hour ago but now i am facing issue You don't have permission to access this resource. my route file is.
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', [AppHttpControllersErrorController::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');
});
when i hit route http://www.ereciept.com/invoices/ on local server i face this issue.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…