Anyone know how to validate excel column in laravel?

|
odoolens 2022-08-29 13:27:10
Functioning No. PHP is still relevant as scripting language.
Akashdeep Singh 2022-08-29 13:31:58
laravel_discuss-136040.jpg
how to solve this error??
Akashdeep Singh 2022-08-29 13:31:59
laravel_discuss-136041.jpg

keweegen 2022-08-29 13:33:49
Akashdeep Singh 2022-08-29 13:31:58
how to solve this error??

$user_details is null

keweegen 2022-08-29 13:34:49
284 and 285 lines is correct?
odoolens 2022-08-29 13:35:21
Akashdeep Singh 2022-08-29 13:31:58
how to solve this error??

add ‘fname’ in your database structure

Akashdeep Singh 2022-08-29 13:36:37
keweegen 2022-08-29 13:34:49
284 and 285 lines is correct?

don’t know how to check?

keweegen 2022-08-29 13:37:43
Akashdeep Singh 2022-08-29 13:31:58
how to solve this error??

Pls use FormRequest for validation
The Controller must be a small

Algorithme 2022-08-29 13:38:39
laravel_discuss-136047.jpg

keweegen 2022-08-29 13:39:19
Akashdeep Singh 2022-08-29 13:36:37
don’t know how to check?

On line 285 you redefine the variable, you should use one of these. In the case when the model is not found, then you need to give the appropriate error.

keweegen 2022-08-29 13:42:47
Akashdeep Singh 2022-08-29 13:36:37
don’t know how to check?

Also, you already have the model “Tbl_student” (line 262) in your arguments, you do not need to search for this entry again in the database (line 285).

Akashdeep Singh 2022-08-29 13:44:46
ok then dlt 285 line
keweegen 2022-08-29 13:45:19
Also, you do not need to check the request type – PATCH (line 267). This should be controlled at the route declaration level.
Akashdeep Singh 2022-08-29 13:46:29
sir Please check my code connecting with my pc any disk
keweegen 2022-08-29 13:46:40
no ty
Akashdeep Singh 2022-08-29 13:47:26
ok ok
Mohit77u 2022-08-29 13:54:13
Hiii anyone know how to integrate mpesa with laravel 9 for checkout pls help
donehis1 2022-08-29 13:59:07
Get any website for your jobs.
-;Clone websites
– Spam pages
– Gateways
– Online banking, Courier, investment and more.
Anything you can ever imagine on Toolz in the street
Dm me now
I provide demo or sample. For fresh job, I make the tool first and give to you for a test before payment. Test for script can be on anydesk or TeamViewer why for full website test is that, I finish everything and hosting but will only provide admin after testing.
Long time deals only. Un-serious people, stay off.
Web Developer 2022-08-29 14:03:16
Akashdeep Singh 2022-08-29 13:31:58
how to solve this error??

u cant update Auth like this you have to take from user table

Sunny 2022-08-29 14:25:06
Can we test apis with laravel dusk? Or just browser based app?
natghi2010 2022-08-29 14:52:56
Sunny 2022-08-29 14:25:06
Can we test apis with laravel dusk? Or just browser based app?

browser

Sunny 2022-08-29 14:53:59
natghi2010 2022-08-29 14:52:56
browser

Thanks for reply

natghi2010 2022-08-29 14:54:02
the whole idea is user exp
natghi2010 2022-08-29 14:55:42
for api you have normal tests
h_a_r_s_a_l 2022-08-29 14:59:12
Anyone know how to validate excel column in laravel???
RichardMuvirimi 2022-08-29 15:29:26
h_a_r_s_a_l 2022-08-29 14:59:12
Anyone know how to validate excel column in laravel???

search for phpexcel

Akashdeep Singh 2022-08-29 16:38:47
laravel_discuss-136082.jpg
error??
Akashdeep Singh 2022-08-29 16:38:48
laravel_discuss-136083.jpg

Akashdeep Singh 2022-08-29 16:40:53
Undefined array key “Fname”
epaphradito 2022-08-29 16:46:24
Akashdeep Singh 2022-08-29 16:38:47
error??

Can you show the variable $id where it is assigned in the controller or something?

Akashdeep Singh 2022-08-29 16:47:33
epaphradito 2022-08-29 16:46:24
Can you show the variable $id where it is assigned in the controller or something?

yes

epaphradito 2022-08-29 16:47:45
You are trying to get the Property “Fname” from a variable “$id”, but check whether this $variable $id is really an object from which the property “Fname” is part
epaphradito 2022-08-29 16:47:55
Akashdeep Singh 2022-08-29 16:47:33
yes

Screenshot please

Akashdeep Singh 2022-08-29 16:48:00
laravel_discuss-136091.jpg

epaphradito 2022-08-29 16:49:21
Now, problem might be in the table structure of the tbl_student … do you really have Fname as a field there?
|