Why Laravel Api return error 500?

|
TheFeLuM 2021-06-25 09:49:23
HiTechno_Support 2021-06-25 09:47:47
Hello
Why Laravel Api return error 500?
for example answered only 2 or 3 out of every 10 requests
The answer of the other requests only gives 500 errors without printing any error text and logging it!
The throttle settings are correct too!

look in logs what they show, probably there is more explicitly error is giving

HiTechno_Support 2021-06-25 09:51:45
TheFeLuM 2021-06-25 09:49:23
look in logs what they show, probably there is more explicitly error is giving

Nothing is recorded in the log 🙁

TheFeLuM 2021-06-25 09:52:27
delete all logs and try again, must be there something
HiTechno_Support 2021-06-25 09:59:18
TheFeLuM 2021-06-25 09:52:27
delete all logs and try again, must be there something

Unfortunately nothing was recorded

HiTechno_Support 2021-06-25 10:02:20
error_log of server this text recorded

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in /home/rqvsijpf/baseAPI/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 404

Mouli Vinoth 2021-06-25 10:24:47
I recently migrated to laravel 6.0. My session msg is not displaying properly. Its not displaying in expected page, but if I redirect to home page its displaying in home page. Pls help me to solve this issue.
cayetanohosma 2021-06-25 10:54:10
I’m pretty sure that you are in a huge loop caused by a bad query or configuration. What is the code that throw that?
Jadidi_82 2021-06-25 11:23:33
laravel_discuss-86488.jpg
Hi guys. the sweet alert doesn’t work do you know what is wrong?
MariaDelinternet 2021-06-25 12:22:52
Hey, we’re looking for a workmate with PHP coding experience. Well-paid salary and professional team in Europe. Working remotely is possible.
arsangamal 2021-06-25 12:28:20
Jadidi_82 2021-06-25 11:23:33
Hi guys. the sweet alert doesn’t work do you know what is wrong?

You are not returning anything as the route response

after sweetalert line return view

Jadidi_82 2021-06-25 12:30:39
I have seen somebody used return redirect(‘/’);
Jadidi_82 2021-06-25 12:30:49
but doesnt work
K 2021-06-25 12:31:16
Jadidi_82 2021-06-25 11:23:33
Hi guys. the sweet alert doesn’t work do you know what is wrong?

Try with helper instead of facades

Jadidi_82 2021-06-25 12:34:51
K 2021-06-25 12:31:16
Try with helper instead of facades

doesnt work

K 2021-06-25 12:35:35
Which version you are using??
Soumen954 2021-06-25 12:52:42
How to send response with redirect?
arsangamal 2021-06-25 12:58:57
Jadidi_82 2021-06-25 12:30:39
I have seen somebody used return redirect(‘/’);

no redirect, return view or a string at least

meetlunkad 2021-06-25 13:12:57
Any one knows vue js
natghi2010 2021-06-25 13:35:26
meetlunkad 2021-06-25 13:12:57
Any one knows vue js

Vue 2 yes

DevDavid0520 2021-06-25 13:44:14
I also know Vue.
Prakash_developer 2021-06-25 15:09:03
I am installed the voyager admin package for my website, then how do I convert into dynamic front end content instructions/guidelines need, any suggestions ?
2021-06-25 15:10:02
Please someone recommend laravel course thats has detailed working of every concept.
Yamraj117 2021-06-25 15:38:15
ok
Yamraj117 2021-06-25 15:38:47
https://www.udemy.com/course/laravel-advance-ecommerce-project/

Laravel 8 – Build Advance Ecommerce Project A-ZUdemy
In This Course, You Will Build Three Different Project With Laravel 8 Include Advance Professional Ecommerce Site A-Z
Yamraj117 2021-06-25 15:39:17
2021-06-25 15:10:02
Please someone recommend laravel course thats has detailed working of every concept.

https://www.youtube.com/channel/UCkzGZ6ECGCBh0WK9bVUprtw

justine_chacko 2021-06-25 15:46:19
I am storing a data using postman. When I click send It stores data and display the data object in postman. I want to display status as 1 and also need to display a message as success. How to do it?
justine_chacko 2021-06-25 15:49:27
I am using return response($response);
justine_chacko 2021-06-25 15:53:46
I used like this return response([‘response’=>$response, ‘status’ => 1, ‘message’ => ‘Success’]);
justine_chacko 2021-06-25 15:53:57
Is it ok?
zaki88_ahmed 2021-06-25 16:05:39
laravel_discuss-86518.jpg

zaki88_ahmed 2021-06-25 16:05:39
laravel_discuss-86517.jpg

zaki88_ahmed 2021-06-25 16:05:39
laravel_discuss-86516.jpg
Property [users] does not exist on this collection instance. (View: C:xampphtdocschat-projectresourcesviewsconversationsshow.blade.php)
zaki88_ahmed 2021-06-25 16:05:52
how can i resolve this error
Jaseel 2021-06-25 16:13:42
justine_chacko 2021-06-25 15:53:46
I used like this return response([‘response’=>$response, ‘status’ => 1, ‘message’ => ‘Success’]);

return response()->json([
‘response’=>$response,
‘status’ => 1,
‘message’ => ‘Success’
]);

bryan_king 2021-06-25 17:07:00
justine_chacko 2021-06-25 15:53:57
Is it ok?

Might just use a 201 status code with response

|