Support the ongoing development of Laravel.io →

13 Threads

posted 2 months ago

Question About JSON:API Payload Complexity

Hi, I’m currently taking a course on Laracasts with Jeremy, where he builds an API using the token-b...

0 Likes
2 Replies
Solved

Laravel Search Test: RefreshDatabase vs DatabaseTruncation

Hello, I want to understand why this test fails specifically with the RefreshDatabase trait but succ...

0 Likes
2 Replies
Solved
posted 2 years ago

Long API queries and processing

I’m have been developing directly with PHP for years with a focus on creating utilities for other ap...

0 Likes
1 Replies
Solved

Session not displaying correctly in Laravel 10 after AJAX

I'm developing a web application using the Laravel framework. I'm using the Laravel session system i...

0 Likes
4 Replies
Solved

Sanctum unauthenticated on production, works locally

Hey, Sanctum works fine on my local machine, but has authentication problem on production. Any sugge...

0 Likes
2 Replies
Solved

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. Excluding solutions from thread authors.

Moderators

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

Your logo here?

Laravel.io

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

© 2026 Laravel.io - All rights reserved.