Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
636 views
in Technique[技术] by (71.8m points)

How to solve You don't have permission to access this resource. ubuntu Laravel?

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. enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...