Support the ongoing development of Laravel.io →

Authorization fails only on API routes

I'm trying to use auth:sanctum on the api route, but it returns "Not authenticated" even w...

0 Likes 1 Replies
Solved

Inject JsonResource in reusable Controller

Hey, I'm trying to inject a JsonResource to my reusable Controller. ApiBaseController: Here I want t...

0 Likes 1 Replies
Solved

What causes this "Not unique table/alias" error?

I am working on a Laravel 8 app with users, roles and permissions. I try to get the current user's l...

0 Likes 1 Replies
Solved

Lumen-generator Installation conflictlum

Hi Everyone, Hope you all doing good.I am newbie for lumen as i have to create api's for a mobile ap...

0 Likes 2 Replies
Solved

filter data from a table in laravel

I'm trying to make a filter to return only the results with status_pedido 'pendente' and 'recebido'....

1 Likes 1 Replies
Solved

invalid argument suppiled foreach() laravel

hello, i recently started working with laravel and i'm facing a problem: I'm getting data from the a...

1 Likes 8 Replies
Solved

What causes the data validation failure in this API?

I am working on an application consisting of a Laravel 8 API and a Vue 3 front-end. I have a registr...

0 Likes 1 Replies
Solved

Wrong user data with laravel sanctum

When I login by API and create token for user returning data are correct, but when I use that token...

0 Likes 1 Replies
Solved

Thanks to our community

Solutions given in the past year.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.