skip to Main Content

Calling laravel controller inside a route

I've Laravel route with GET & POST as below Route::get("test1","ApiTestController@test1"); Route::post("test1","ApiTestController@test1"); Now I'm trying to check some condition & if it remain true then I want to call controller else i want to show error without even going into controller.…

VIEW QUESTION
Back To Top
Search