Hmm... Do you want to send an error response when the app/users hit an endpoint that is not available (or if they access it using the wrong RequestType)? If so, you can add a general catch rule for requests that do not match any other rules. It will take the form of something like this:
routes/api.php or routes/web.php
// All your other rules
Route::post('/login', 'AuthController@store');
// ...
// Anything else, throw a 404 error
Route::get('/{any}', function () {
$data = [
'error' => [
'message' => 'Unknown endpoint'.
'statusCode' => 404
]
];
return Response::json($data, 404);
})->where('any', '.*');
I believe something like this should work.