Laravel dynamic route error 404 page not found : I am new to laravel and I am using version 5.7. I have problem with my dynamic route because whenever I use this get route:

    Route::get('users/{$id}', function ($id) {
        return 'This is the user: ' . $id;
    });

> localhost/users/John

It suppose to display the sentence with the user name specified in the url, but instead of that I am getting error saying 404 page could not be found.

