The GET method is not supported for this route. Supported methods: POST. laravel-8

We Are Going To Discuss About The GET method is not supported for this route. Supported methods: POST. laravel-8. So lets Start this Laravel Article.

The GET method is not supported for this route. Supported methods: POST. laravel-8

How to solveThe GET method is not supported for this route. Supported methods: POST. laravel-8

If you want to have routes available via GET and POST you can use match():
Route::group(['middleware'=>'guest:web'], function(){ Route::match(['get', 'post'], '/post-login', [LoginController::class,'postLogin'])->name('site.postLogin'); Route::match(['get', 'post'], '/register-create', [registerController::class,'create'])->name('site.register.create'); });
More on Available Router Methods

The GET method is not supported for this route. Supported methods: POST. laravel-8

If you want to have routes available via GET and POST you can use match():
Route::group(['middleware'=>'guest:web'], function(){ Route::match(['get', 'post'], '/post-login', [LoginController::class,'postLogin'])->name('site.postLogin'); Route::match(['get', 'post'], '/register-create', [registerController::class,'create'])->name('site.register.create'); });
More on Available Router Methods

Solution 1

If you want to have routes available via GET and POST you can use match():

Route::group(['middleware'=>'guest:web'], function(){
   Route::match(['get', 'post'], '/post-login', [LoginController::class,'postLogin'])->name('site.postLogin');
   Route::match(['get', 'post'], '/register-create', [registerController::class,'create'])->name('site.register.create');
});

More on Available Router Methods

Original Author brombeer Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment