Is this necessary if you use the Postman tool?

|
emrullahayilmaz 2021-04-03 02:28:29
but at local is working i use whm cpanel but not working i got this erro Connection could not be established bla bla stream_socket_client(): unable to connect to ssl://mail.esnekadim.com:465 (Network is unreachable)
Dsetiawanindra 2021-04-03 05:13:52
laravel_discuss-75306.jpg
I have a problem creating an API to update images in laravel, in the if condition hasFile () data always returns “gagal edit”. i am using laravel 8
Sultonov_Daler 2021-04-03 05:36:20
Dsetiawanindra 2021-04-03 05:13:52
I have a problem creating an API to update images in laravel, in the if condition hasFile () data always returns “gagal edit”. i am using laravel 8

Firstly debug $request with dd(); Make sure it’s coming UploadedFile from api

Dsetiawanindra 2021-04-03 05:38:54
Sultonov_Daler 2021-04-03 05:36:20
Firstly debug $request with dd(); Make sure it’s coming UploadedFile from api

I have tried it and there is an error “false” what is the next solution?

Sultonov_Daler 2021-04-03 05:42:08
Dsetiawanindra 2021-04-03 05:38:54
I have tried it and there is an error “false” what is the next solution?

Can you send screenshot?

Dsetiawanindra 2021-04-03 05:44:11
laravel_discuss-75310.jpg

Sultonov_Daler 2021-04-03 06:34:02
Dsetiawanindra 2021-04-03 05:44:11

You must dd() before if statement

Dsetiawanindra 2021-04-03 06:38:46
Sultonov_Daler 2021-04-03 06:34:02
You must dd() before if statement

laravel_discuss-75312.jpg
I checked the postman tools and it returned the result “[]”. where is the problem?

Sultonov_Daler 2021-04-03 06:39:29
Dsetiawanindra 2021-04-03 06:38:46
I checked the postman tools and it returned the result “[]”. where is the problem?

Request coming with null value

Sultonov_Daler 2021-04-03 06:41:44
Did you switch off the csrf validation?
Azad Akhtar 2021-04-03 07:00:21
https://prnt.sc/112tpeh

ScreenshotLightshot
Captured with Lightshot
Azad Akhtar 2021-04-03 07:01:01
<input type=”file” accept=”image/*” placeholder=”post_image” value=”{{$post->post_image}}” name=”post_image” >
file name is not showing in input file field
Dsetiawanindra 2021-04-03 07:03:13
Sultonov_Daler 2021-04-03 06:39:29
Request coming with null value

I write the code “dd ($ request-> all ())” with the result “[]” if I write the code “dd ($ request-> hasFile (‘picture’))” with the result “False”.

Dsetiawanindra 2021-04-03 07:05:20
Sultonov_Daler 2021-04-03 06:41:44
Did you switch off the csrf validation?

no, i add data with image API is work, but i create edit image API have problem.

Sultonov_Daler 2021-04-03 07:05:52
Dsetiawanindra 2021-04-03 07:03:13
I write the code “dd ($ request-> all ())” with the result “[]” if I write the code “dd ($ request-> hasFile (‘picture’))” with the result “False”.

Request data is null,
Check csrf validation

Siberfx 2021-04-03 07:07:40
i think the enctype in form not defined for file input type
Dsetiawanindra 2021-04-03 07:09:36
Sultonov_Daler 2021-04-03 07:05:52
Request data is null,
Check csrf validation

so add csrf validation in postman?

Dsetiawanindra 2021-04-03 07:14:19
Siberfx 2021-04-03 07:07:40
i think the enctype in form not defined for file input type

Is this necessary if you use the Postman tool?

Siberfx 2021-04-03 07:19:23
it might be changing body to type binary
Sultonov_Daler 2021-04-03 07:20:15
Dsetiawanindra 2021-04-03 07:09:36
so add csrf validation in postman?

Disable csrf for api

Dsetiawanindra 2021-04-03 07:36:05
okay thanks all
GauravGohil 2021-04-03 09:20:13
How to access data in middlware which is passed to controller
2021-04-03 09:30:25
To get validation message in postman pass key: accept,value:application/json in header
Nasiba Kutbiniso 2021-04-03 10:57:49
laravel_discuss-75335.jpg
help , after upload my laravel project to server it show s this
Auditore_1459 2021-04-03 11:03:32
Nasiba Kutbiniso 2021-04-03 10:57:49
help , after upload my laravel project to server it show s this

The server searches for index.php in public_html folder. You have to create a symbolic link to laravel app public folder in order to serve it correctly. At least, I do like that

ClayboardsTechnology 2021-04-03 11:33:08
Hello beautiful people, I am relatively new to Laravel, though I have build few simple apps with it, I am currently working on an app and I believe the backend is good to a point but I am trying to make the welcome.blade.php page which will be available to everyone displace a list of a category using foreach loop, I keep getting a “variable undefined error”.
I don’t know how to fix this and it has really destabilized me.
Hoping to get help from this beautiful community.
Thanks in anticipation.
2021-04-03 12:01:22
ClayboardsTechnology 2021-04-03 11:33:08
Hello beautiful people, I am relatively new to Laravel, though I have build few simple apps with it, I am currently working on an app and I believe the backend is good to a point but I am trying to make the welcome.blade.php page which will be available to everyone displace a list of a category using foreach loop, I keep getting a “variable undefined error”.
I don’t know how to fix this and it has really destabilized me.
Hoping to get help from this beautiful community.
Thanks in anticipation.

Show us your routes, controller & view code

ClayboardsTechnology 2021-04-03 12:05:39
2021-04-03 12:01:22
Show us your routes, controller & view code

route and view for the welcome page

ClayboardsTechnology 2021-04-03 12:05:49
2021-04-03 12:01:22
Show us your routes, controller & view code

laravel_discuss-75344.jpg

ClayboardsTechnology 2021-04-03 12:06:00
2021-04-03 12:01:22
Show us your routes, controller & view code

laravel_discuss-75345.jpg

ClayboardsTechnology 2021-04-03 12:32:41
thanks so much @zeetele I really appreciate it
2021-04-03 12:37:14
ClayboardsTechnology 2021-04-03 12:32:41
thanks so much @zeetele I really appreciate it

Your welcome 😇

Relaxed Guy 2021-04-03 13:21:02
Guys
Relaxed Guy 2021-04-03 13:22:03
Am having an issue with laraforge I followed the steps on deployment
Relaxed Guy 2021-04-03 13:22:14
But am getting an error of 500
|