Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
116 views

I’m running a Laravel backend alongside a Vue frontend on NGINX. The issue I’m facing is that my API endpoints are returning HTML instead of JSON. For example: https://isuecampusmap.site/api/ → ...
Bunz's user avatar
  • 1
2 votes
1 answer
81 views

I am playing for the first time with API Resource in laravel 12. I have this situation: The product has many Skus: public function skus(): HasMany { return $this->hasMany(Sku::class); } The ...
calin24's user avatar
  • 1,021
0 votes
1 answer
81 views

Hello I want to create an authentication system using API with oauth2 pkce and I don't want to use the laravel UI. What suggestions do you have so that I can manually provide the authentication key? 1....
noa-developer's user avatar
0 votes
0 answers
71 views

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 (...
Lana Hanna's user avatar
0 votes
1 answer
46 views

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://...
Junaid's user avatar
  • 11
3 votes
1 answer
80 views

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 ...
WPdev11's user avatar
  • 111
1 vote
0 answers
84 views

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("...
kkamara's user avatar
  • 41
1 vote
0 answers
114 views

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. ...
Waleed Farrukh's user avatar
2 votes
1 answer
643 views

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', ...
Data Science's user avatar
0 votes
1 answer
337 views

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 ...
scorpions77's user avatar
0 votes
1 answer
443 views

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)...
Nalinda Dulwala's user avatar
0 votes
0 answers
42 views

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 ...
Nikita Skliarov's user avatar
-1 votes
1 answer
48 views

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 ...
Tsabit's user avatar
  • 55
0 votes
0 answers
58 views

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: ...
lolich's user avatar
  • 23
1 vote
1 answer
1k views

I get a "419 (unknown status)" error when sending a post request to login user POST http://localhost/login 419 (unknown status) Network request response : "message": "CSRF ...
johnny shepherd's user avatar
0 votes
3 answers
1k views

I was pulling the data this way, but when I query with Postman, it takes too long to get the response. public function getAllItems(Request $request) { $type = $request->input('type'); ...
spo spo's user avatar
  • 33
0 votes
1 answer
127 views

I'm working with Laravel and this is my RegisterController Class based on API: class RegisterController extends AuthController { public function register(Request $request) { $validator ...
Peter Amo's user avatar
  • 261
0 votes
2 answers
208 views

I am using Laravel to create records using APIin api.php than using the form, but I am having difficulties with the methods, for example the store() method is not inserting the record I want in ...
user avatar
0 votes
1 answer
3k views

I'm currently building an API using Laravel and need two different authentication types and would just like some input on weather I'm thinking correctly before implementing everything. The API will ...
TS1997's user avatar
  • 106
1 vote
0 answers
135 views

In my Laravel application, I ran into a strange problem. I get a response from the API, but everything is in spaces in Russian, and everything is OK in English. Please tell me how to fix it? ...
hannes's user avatar
  • 11
1 vote
1 answer
46 views

Here I ask for implementation laravel API and Laravel APP communicating each other. Here's how the flow supposed to be: Laravel API side, can retrieve all request from outside that had account and ...
kvb4's user avatar
  • 11
0 votes
1 answer
510 views

I am familiar with creating a Many To Many relationship using Laravel. In my example, I have many resources that share many activities. I have been able to successfully create this relationship in ...
Damon's user avatar
  • 4,544
1 vote
0 answers
418 views

I am making a seat map for a flight using Amadeus APIs? In the documentation there are two ways to fetch the seat map data, https://developers.amadeus.com/self-service/category/flights/api-doc/seatmap-...
barkii's user avatar
  • 31
0 votes
0 answers
27 views

I can access my holder class data but i can't seems to access data that is coming from devices table. i have used postman to check my api and it return the data ok and also when i print_r the data on ...
Sanan Abid's user avatar
1 vote
1 answer
214 views

I have set up a project and written some routes in the api.php route file. I created a middleware, registered the middleware in the Kernel.php file, and then implemented the middleware in the api.php ...
Rizwan Saleem's user avatar
0 votes
1 answer
171 views

I am currently following this tutorial, https://nothingworks.netlify.app/blog/laravel-sanctum-multi-auth/ However when creating the middleware, the tokenCan method is undefined. <?php namespace ...
mushroom's user avatar
0 votes
1 answer
21 views

I have a project of Roles and Permission in Laravel API based with Vue.js frontend. In Add Roles page if clicking the "All" checkbox, all roles are checked but no data appears in ...
Sd Jibon's user avatar
1 vote
1 answer
1k views

Trying to create an API server with laravel. I have seen many tutorials that catch the exception thrown in the service layer. However, in Laravel, we have an option to create a custom error handler ...
user275157's user avatar
  • 1,362
0 votes
0 answers
201 views

So im currently working on a simple REST API in Laravel. I have a post function which sends entered data to database and uploads one file. Everything works fine on local. Image is uploading to storage/...
vvooki.'s user avatar
0 votes
1 answer
2k views

I am using Laravel as back end for my project. Passport package is being used for authentication of api request. But I am getting error for login. Kindly suggest me what and where I am missing. ...
AffiliateVDev's user avatar
0 votes
0 answers
61 views

I want to upload a directory over laravel api without compressing the directory, I want to select the directory and upload it, is there any way to do it? I searched too much for it but I didn't find ...
Zakarya's user avatar
  • 21
2 votes
1 answer
324 views

In Laravel 10, I'm using raw PHP code to call an as my stored procedure is returning 2 tables. But I'm not able to receive the output parameters in either way. Is there any way to get the output ...
Vaibhav K. Patil's user avatar
3 votes
2 answers
2k views

I want to call a route which binds to parameter from the route which the enums have the enum type with a value of integer. However, after calling it I get error 500 with this error message Target [App\...
behroozbc's user avatar
  • 2,868
-1 votes
2 answers
246 views

AuthController namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Models\User; use App\Http\Requests\Api\RegisterRequest; use Illuminate\Http\Request; use Illuminate\...
Данил Грицан's user avatar
-1 votes
1 answer
85 views

Route::group(\['namespace' =\> 'API\\V1'\], function () { Route::group(['prefix' => 'auth', 'namespace' => 'Auth'], function () { Route::get('registration', [CustomerAuthController::...
Zeeshan Ali's user avatar
0 votes
0 answers
240 views

When my script fails in a Laravel 9 app, instead of it to outputing the JSON I configured, it shows this: InvalidArgumentException: View [welcome] not found. in file C:\Users\kgl\Documents\biomandate\...
faba's user avatar
  • 15
0 votes
1 answer
678 views

I have API using laravel 8. This API was made each Module. Laravel API running in localhost port 8000. Then i have reactjs app running in localhost port 3000. If i access api by URL or Rest Client ...
Rido's user avatar
  • 11
0 votes
2 answers
71 views

This is my file user_model.dart class UserModel { int id, nik; String password, token; UserModel( {required this.id, required this.nik, required this.password, required ...
Asadin's user avatar
  • 11
2 votes
2 answers
2k views

I am working on building API and so far I've familiar with the web route.I was wondering can we share the same controller for both web and API. I already have a controller file which is working for ...
Ranvir Singh's user avatar
0 votes
2 answers
90 views

In Laravel pacakage development, the asset() function is not working. How can I properly use it? I also need to get the URL path of the public folder.
Bhargav Raviya's user avatar
0 votes
0 answers
910 views

I´m trying to send data to my component table when i clicked a button. My another component should fill a table with data received. i´m using composition API. To try this i´m building this code: in my ...
scorpions78's user avatar
1 vote
0 answers
185 views

I have created APIs with sanctum authentication and moved the laravel application into the production server after uploading it to the server, the production API route are not working I have check my ...
Mohit GOHEL's user avatar
4 votes
3 answers
4k views

As part of API development, I use Laravel 9 and use "php-open-source-saver/jwt-auth" package for authentication without tokens. The API works fine, but I get an error when I add the ...
Fidaali Vohra's user avatar
0 votes
0 answers
315 views

I've route api without middleware I want to access Auth::user() in my controller but Auth::user always return null, Here my api route and my controller: Route::get('products/{product}', [...
Nawcodes's user avatar
0 votes
1 answer
39 views

I created API like this Json response. { "product_category_id": 1, "branch_id": 1, "product_category_code": "00184050", "...
dinesh balan's user avatar
0 votes
3 answers
173 views

I have table "Jobs" having a field called "empids". we are storing comma separated employee ids in this field, for ex. 1,12,56. I am trying to return JSON using with() method by ...
Fawaz Chughtai's user avatar
0 votes
0 answers
50 views

I have shown vechicle data just I want to get driver data related to vehicle but unfortuntly i am getting error undefined please help me how can i show into draggablelist thank u ? Controller public ...
Malik Zubair Mukhtar's user avatar
1 vote
0 answers
134 views

I'm trying to generate a Resource with the same model. But in the response it adds a key which i don't know where it comes from. Here is the api call: Route::get("/definitions/{companyId}", ...
mehmetserif's user avatar
  • 1,215
1 vote
1 answer
509 views

Can anyone show me how to get and post data with API in flutter? I have tried some flutter API tutorials with Laravel but when I print the value is error cors, something wrong with my flutter code or ...
Denise Aldianto's user avatar
1 vote
1 answer
144 views

I bought this Codecanyon WebApp project which i want to use the APIs to develop a mobile version (fluter & Dart) of same system, only for me to realise theres no API i can use to integrate those ...
Bright's user avatar
  • 73

1
2 3 4 5 6