vendredi 11 mai 2018

Query not working. page not found in Laravel

This is my show.blade.php

<!doctype html>
<html lang="en">
<head>

</head>
<body>


        <h1></h1>

</body>
</html>

and this is the route

Route::get('/tasks/{$task}', function ($id) {

    $task = DB::table('tasks')->find($id);


    return view('tasks.show', compact('task'));
});

The problem is that it shows this 'Sorry, the page you are looking for could not be found.' instead of the result.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2rBCU6K
via IFTTT

Aucun commentaire:

Enregistrer un commentaire