259 questions
0
votes
0
answers
41
views
Should I Use NextAuth.js for Authentication with a Laravel API in a Next.js (SSR) E-Commerce Site?
I'm building an SEO-friendly e-commerce site. Since I usually work with Inertia.js, React, and Laravel as an SPA (which isn't ideal for SEO), I’ve decided to use Next.js with Server-Side Rendering (...
0
votes
1
answer
38
views
Laravel API and React Frontend: Redirecting to Profile After Submitting Post Results in 404 | Not Found
I have built a web application where the front end is created using React and the backend with Laravel. My application setup is as follows:
Frontend (React): Hosted on the main domain: https://...
3
votes
1
answer
64
views
Issue with ::put and ::delete Method in Laravel API - 404 Error Instead of JSON Response
I am developing a Laravel API and am encountering issues with my ::put method. I can successfully create and retrieve a model, but when I attempt to delete or update, I receive Laravel's 404 page ...
1
vote
0
answers
78
views
In Laravel 11 how can I get the Review data to be displayed in a paginated fashion while still using ReviewCollection?
I've got the following in a App\Http\Resources\V1\BookResource.php that I would like to paginate.
"reviews" => new ReviewCollection(
$this->reviews()
->where("...
0
votes
0
answers
25
views
Logging into an angular app from Windows 11 in a docker container running PostgreSQL gives SQLSTATE[08006] [7]?
As mentioned in the subject line when I try to login to an angular app using Laravel on the backend from Windows 11 using a docker container running PostgreSQL I get the following error: SQLSTATE[...
0
votes
0
answers
62
views
How to Deploy laravel-react project in shared Hosting?
I have uploaded my laravel react project in shared hosting where there was a laravel site. but i built a new laravel api and frontend in react. my react folders are in resources/js
now when i visit my ...
1
vote
0
answers
104
views
Laravel Appending Request Body to Response with 200 Status Code
I am getting an issue on hitting the Laravel API. The following issue occurs:
The API is hit and returns an incorrect response twice, with the request body being appended along with a 200 status code. ...
2
votes
1
answer
372
views
How to separate categories in JSON with Laravel Resource API
I was trying to build an API with Laravel but I failed to categories data from a table.
The API JSON should look like this:
[
{
id: 1,
name: 'John Doe',
birth_place: 'Birmingham',
...
0
votes
0
answers
33
views
Fatal error: Uncaught Exception: Error encoding runtime JSON response: Malformed UTF-8 characters in Laravel Vapor
I have setup laravel vapor and deployed my project using laravel vapor. For my web.php file all routes are working and produce HTTP responses, but in api.php
when I trigger any API route from a ...
0
votes
1
answer
283
views
problem with routes API laravel in cPanel
A few days ago I uploaded my laravel project to my hosting with my test domain, in cPanel.
There I could see that my vue components were not loading, I did not see the data tables, etc..
Searching, I ...
0
votes
1
answer
411
views
Laravel 11 - Executing php artisan install:api is giving "Symfony\Component\Process\Exception\ProcessStartFailedException"
I set up a new Laravel 11 project and try to install API routes by executing php artisan install:api command.
This results in the below error.
Laravel install api error
OS: Mac OS Sonoma 14.3.1 (23D60)...
0
votes
0
answers
68
views
Laravel Passport 401 Unauthenticated Error
I have an api for my software that an RPA process hits each day. It's been working fine, but all of a sudden on 5/24, the process started getting a 401 error. I have a team in India that's built the ...
0
votes
0
answers
35
views
Target class does not exist when I'm trying to acces API route
When I'm trying to access my route via http://localhost:8000/api/dnd/array, I get error:
Target class [Api/DndController] does not exist.
https://flareapp.io/share/87ndNRBm
I've use these commands to ...
-1
votes
1
answer
46
views
Reorganizing controller files in Laravel
In Laravel, I can't find my controller after rearranging the file and folder structure in app/http/controller. I wanted to organize my controller files due to their large number. Here's how it looks ...
0
votes
0
answers
54
views
API Call to your own Laravel Project
I am struggling to make an API call to my project. Can someone assist me here?
This is the command I am entering:
curl.exe -X PUT http://hsk.local/api/v1/applicants/1 \ -H "Content-Type: ...