Skip to main content

All Questions

Tagged with
0 votes
1 answer
164 views

Laravel FormRequest Validation for Rest API get calls with 2 query json params not working properly

I got a Laravel FormRequest class that should validate two JSON query strings (nested objects and arrays) on a GET route on my JSON Rest API. I pick up the json query strings, decode them to php ...
MikkeyDevelop's user avatar
1 vote
0 answers
181 views

Flutter Riverpod project with laravel backend - Difficulties retrieving image from backend

I am developing flutter app using riverpod as state management and laravel framework for backend. Currently i am working on implementing logic for saving user profile picture by selecting it with ...
Atanas Nankinski's user avatar
0 votes
0 answers
155 views

How to make api calls for all entries in database if i have to pass individual ids to the query parameter every time i make an api call

Here I am trying to make an API call to an external API where I have to attach query parameter. But the problem is the API provider does not allow all parameters at once and is limited to just 10 and ...
Priyank's user avatar
  • 13
-4 votes
1 answer
30 views

How can I access the 'type' attribute from the 'students' array in the API response using Flutter, Laravel, and PHP? [duplicate]

"data": { "id": 9, "name": "tala", "role": "Student", "email": "[email protected]", "students"...
anna 's user avatar
0 votes
3 answers
47 views

I am getting an error when trying to access and return hasOne from the controller to the frontend

Response::setContent(): Argument #1 ($content) must be of type ?string I am getting the above error, when trying to access and return hasOne from the controller to the front end. I have created two ...
sajid ahamed's user avatar
-3 votes
1 answer
43 views

Authentication using Middleware in route api (solved)

i wanted to do authentication inside api.php in laravel, i use custom middleware to identify Auth()->role. this is what i have done: my problem is, when i logged on as author it said not ...
Eranda Dava's user avatar
1 vote
2 answers
523 views

How I can send the link through SMS gateway using Laravel

I intergraded the SMS gateway in my Laravel project I want to sms to the client registration link through SMS but I tried the same way it's going but can't click. And mainly I plan to take the client'...
Jerad's user avatar
  • 211
1 vote
0 answers
212 views

Laravel api rest + vue give me the error 405 method not allowed

I have a laravel api rest + vue js application using vite and locally with xampp it works correctly but when I mount it in docker all post, put, etc. requests give me the error 405 method not allowed, ...
Alvaro's user avatar
  • 11
1 vote
1 answer
238 views

Laravel REST API: how to map database column name with another name for parameters?

I have a column named location_relationship_id which is a relationship that belongs to Location model. In postman, this parameter works: http://localhost/api/v1/traffic-violations?...
Abdulrahman Mushref's user avatar
0 votes
0 answers
529 views

Developing with OpenAI's API - Free Trial API key takes 15 seconds, Billing Account API key takes 60 seconds

I'm developing a website for a client that utilizes the OpenAI's API. I've been using my own free trial API (that Open AI gives out for the first 3 months). And I get the response back in 15-20 ...
VenoM's user avatar
  • 453
0 votes
1 answer
413 views

Encounter CORS Policy from Reactjs to Laravel 8 api

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
1 answer
30 views

Too few arguments to function Akhaled\CPanelAPI\Modules\AddonDomain::create()

i am try to create addon domain using my akhaled/cpanel-api on my laravel script i got this error ArgumentCountError Too few arguments to function Akhaled\CPanelAPI\Modules\AddonDomain::create(), 3 ...
Juwel1211's user avatar
-1 votes
1 answer
195 views

PHP Session Variable Issue

I have a project which is react js and laravel php.I have two apis, one generate_otp an second verify_otp. Now the generate_otp works and stores the otp in session. I tested it by returning the value ...
zeshan ahmad's user avatar
0 votes
2 answers
563 views

Laravel 8 Jobs/Queues and API

My task is to develop a eCommerce shop with Laravel 8. I have implemented the product retrieving part as a job and in the controller I have dispatch. Idea is to improve efficiency and support ...
Ish's user avatar
  • 21
0 votes
1 answer
45 views

Problem when accessing some routes from my LARAVEL 8 api

I have created an api with Laravel 8, very simple, just to do some tests, it is a table with users where I store their name, last name and city. Well my problem is to obtain all the users that are in ...
verosf98's user avatar

15 30 50 per page
1
2 3 4 5
192