How Control flow in Laravel
Route::get(‘task’,’TaskController@index’)->name(‘task’); Explanation:- name(‘task‘) is given in the URL as http://127.0.0.1:8000/task. Control flow:- As the URL is hit the control will go the route(web.php), there it will get Route::get(‘task’,’TaskController@index’)->name(‘task’); Here, there will be a name match from the URL and if there is match then there will be a function call named index and route will … Read more