Open iliyaZelenko opened 6 years ago
This solves the problem with API 404 response.
If you put the following code in routes/api.php it does not work:
routes/api.php
Route::fallback(function() { return response()->json(['message' => 'Not Found!'], 404); });
If no route is found, then there is the possibility to return an 404 error.
https://stackoverflow.com/q/52382680/5286034
This solves the problem with API 404 response.
If you put the following code in
routes/api.php
it does not work:If no route is found, then there is the possibility to return an 404 error.
https://stackoverflow.com/q/52382680/5286034