api: Regular Laravel routes returns 404 after update
I’ve updated Dingo to the latest version using "dingo/api": "1.0.*@dev", but now all my regular Laravel routes outside the Dingo router won’t seem to match any requests. Even a simple route isn’t recognized as a valid request:
Route::get('test', function() {
die('test');
});
Can u look at this problem?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (6 by maintainers)
I’m having the same issue,after update appear this question
The problem is
API_DOMAINin.envorconfig/api.phpfile. i modified the value ofAPI_DOMAINto empty ,and solve the problem. which is like:Confirmed. If using /api/ for API_PREFIX it will break. When using api as API_PREFIX it works. May be need to highlight somewhere? Some sample documentation on the net still using /api/ as the prefix.