إذا كناا نريد تحديد روابط لإرجاع رسائل خطأ، بدلا من صفحة 404 الإفتراضيه، يمكن إنشاء رابط خاص لذلك بنهاية صفحة routes
Route::group(['middleware' => ['auth'], 'prefix' => 'admin', 'as' => 'admin.'], function () {
Route::get('/home', 'HomeController@index');
Route::resource('tasks', 'Admin\TasksController');
});
// Some more routes....
Route::fallback(function() {
return 'Hm, why did you land here somehow?';
});