-
-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Laravel API routers got 404 #862
Comments
I have exactly the same issue |
I don't know if this is the best solution but it is working my case. You should add exception something like this:
config/laravellocalization.php |
I already set that....
This plugin is not working.....
…On Wed, Mar 29, 2023, 5:17 PM Körmöczy Gergő ***@***.***> wrote:
I don't know if this is the best solution but it is working my case. You
should add exception something like this:
'urlsIgnored' => ['/api/*'],
config/laravellocalization.php
—
Reply to this email directly, view it on GitHub
<#862 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABDLT23KSXQYJLH7AFDYOY3W6RHAXANCNFSM6AAAAAAWABSUKM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Then you should run after of course.
|
add ["Accept": "application/json"] to header of the request |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Route::groups
:supportedLocales
,useAcceptLanguageHeader
andhideDefaultLocaleInURL
).My Router api.php
I opened
http://127.0.0.1/cv/api/22333
it redirects me to
http://127.0.0.1/cv/en/api/22333
with Router not found
I checked
#382
and
#482
and I can not make it works!
The text was updated successfully, but these errors were encountered: