Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
1 answer
65 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 ...
WPdev11's user avatar
  • 111
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. ...
Waleed Farrukh's user avatar
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 ...
scorpions77's user avatar
0 votes
3 answers
1k views

How can I shorten Laravel API response time?

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
  • 23
0 votes
1 answer
118 views

How to show response json of validation errors in Blade

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
  • 221
1 vote
0 answers
113 views

Problem with getting a response from the API in Russian

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
167 views

Middleware Not Functioning Only on API Routes in Laravel 9.19

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
2 votes
1 answer
315 views

In Php, while calling a parametrized SQL Server stored procedures, how to get data from output parameters?

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

Target Enum Type is not instantiable

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,740
0 votes
0 answers
194 views

How to i handle Laravel error if script fails InvalidArgumentException: View [welcome] not found

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
0 answers
311 views

Auth::user() return null in route non authentication

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
1 vote
0 answers
133 views

Laravel 9 Resources adds array key

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,227
1 vote
1 answer
137 views

Converting Laravel "return view($this->theme" to return Json data

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 vote
1 answer
249 views

Data is not stored in database eventhough API successfully passed in postman

I am trying to store a historical data through API from front-end(flutter). Below are the controller in laravel. When I ran my code in postman, it supposed to work, since the message "suksess add ...
jabs93's user avatar
  • 49
0 votes
1 answer
90 views

Laravel appended attribute blocking AJAX query

I have a model called OrdenesTrabajo. I have an appended field called 'show_personal' like so: protected $appends = [ 'show_personal', ]; public function getShowPersonalAttribute() ...
Julia Arrospidegaray's user avatar

15 30 50 per page
1
2 3 4 5