In my home.blade.php I have the below code
<a href="{{ route('tasks.index') }}" class="btn btn-info">View Tasks</a>
<a href="{{ route('tasks.create') }}" class="btn btn-primary">Add New Task</a>
then in the routes.php I have the following,
Route::get('/', [
'as' => 'home',
'uses' => 'PagesController@home'
]);
Route::get('/index', [
'as' => 'index',
'uses' => 'TasksController@index'
]);
Route::get('/create', [
'as' => 'create',
'uses' => 'TasksController@create'
]);
Why am I having this error for http://localhost:8000/
Route [tasks.index] not defined. (View: D:\wamp\www\test1esources\views\pages\home.blade.php)