Passing id through an link href in Laravel

What you are looking for is a parameterized route. Read more about them here: https://laravel.com/docs/5.3/routing#required-parameters


If you write route like below,

Route::get('/projects/display/{projectId}', 'ProjectsController@getDisplay')->name('displayProject');

You can use the name 'displayProject' in the href and pass the id as Array :

<td><a href="{{ route('displayProject', ['projects' => $projects->id]) }}" class="btn btn-info">View</a></td>

You need to change your route to:

Route::get('/projects/display/{id}', 'ProjectsController@getDisplay');

And then generate URL with:

{{ url('projects/display/'.$projects->id) }}