What version of php?

|
eL7alfa 2020-09-14 09:05:27
jhayforshort 2020-09-14 09:04:49
which every click in the asterisk(*) the form must show

Then?

eL7alfa 2020-09-14 09:05:47
What’s the problem exactly?
jhayforshort 2020-09-14 09:05:55
laravel_discuss-50958.jpg

jhayforshort 2020-09-14 09:05:55
laravel_discuss-50957.jpg

jhayforshort 2020-09-14 09:06:09
then i click the update
jhayforshort 2020-09-14 09:06:23
this are the result
eL7alfa 2020-09-14 09:07:04
Then you need to define that video_type_id’s field
eL7alfa 2020-09-14 09:07:53
product_name solved right? That’s cuz you hv the field now
jhayforshort 2020-09-14 09:08:35
eL7alfa 2020-09-14 09:07:53
product_name solved right? That’s cuz you hv the field now

Yap, but when the store’s update, “the product_name is undefined” :3

eL7alfa 2020-09-14 09:08:38
If you want to update each field one by one, your controller must be hv dinamic field for update
eL7alfa 2020-09-14 09:09:27
jhayforshort 2020-09-14 09:08:35
Yap, but when the store’s update, “the product_name is undefined” :3

What do you mean about undefined

eL7alfa 2020-09-14 09:09:51
What’s the current value in db
jhayforshort 2020-09-14 09:10:02
laravel_discuss-50968.jpg

jhayforshort 2020-09-14 09:10:02
laravel_discuss-50967.jpg
When i click the stores
eL7alfa 2020-09-14 09:10:52
Ok, can you dump the requests?
eL7alfa 2020-09-14 09:11:08
dd($request->all());
eL7alfa 2020-09-14 09:11:20
In your update function
2020-09-14 09:11:45
Eloquent relationships in Laravel

Laravel Tutorial – Eloquent BelongsTo & HasMany & HasOne RelationshipsYouTube
We will discuss together the eloquent relationships in Laravel and take a look at the documentation to see how to grab the information from it. If you find this video useful share it with your friends to spread the knowledge.

Laravel course on my channel:

Documentation:
https://laravel.com/docs/7.x/eloquent-relationships

Project (github repo):
https://github.com/CodeBrain99/Eloquent_relatioships.git

####################
CHAPTERS IN THIS VIDEO!
####################

0:00 – Intro
04:04 – One-to-One Relationship
15:55 – One-to-Many Relationship
25:03 – Many-to-Many Relationship
33:00 – Wrap up

—– Social —–
Instagram : codebrain99 | https://www.instagram.com/codebrain99/
Twitter : codebrain99 | https://twitter.com/CodeBrain99

#laravel #php #framework #web

eL7alfa 2020-09-14 09:11:57
Put it at the first line inside update function
jhayforshort 2020-09-14 09:13:48
laravel_discuss-50974.jpg
Here?
jhayforshort 2020-09-14 09:14:33
laravel_discuss-50975.jpg

jhayforshort 2020-09-14 09:14:34
laravel_discuss-50976.jpg

eL7alfa 2020-09-14 09:15:06
First line, before $this->validate
jhayforshort 2020-09-14 09:15:35
laravel_discuss-50978.jpg

jhayforshort 2020-09-14 09:15:36
laravel_discuss-50979.jpg

eL7alfa 2020-09-14 09:15:39
But thats ok, just try at least it shows requests value
jhayforshort 2020-09-14 09:18:20
My purpose is different blade form but same controller :3 hehe
eL7alfa 2020-09-14 09:18:39
jhayforshort 2020-09-14 09:18:20
My purpose is different blade form but same controller :3 hehe

Thats ok

jhayforshort 2020-09-14 09:18:57
individual edit form
eL7alfa 2020-09-14 09:19:02
jhayforshort 2020-09-14 09:15:35

You got product_name undefined with that function?

jhayforshort 2020-09-14 09:19:19
Yes sir
eL7alfa 2020-09-14 09:19:31
What version of php?
eL7alfa 2020-09-14 09:19:54
eL7alfa 2020-09-14 08:41:20
Try $request->product_name or check filed name first

Try use like this

jhayforshort 2020-09-14 09:20:03
laravel_discuss-50988.jpg

eL7alfa 2020-09-14 09:20:39
jhayforshort 2020-09-14 09:15:36

Impossible you got it undefined while its available there

jhayforshort 2020-09-14 09:21:39
eL7alfa 2020-09-14 08:41:20
Try $request->product_name or check filed name first

I’ve been already try this, the error is my input is going to null hahaha!

eL7alfa 2020-09-14 09:22:07
jhayforshort 2020-09-14 09:21:39
I’ve been already try this, the error is my input is going to null hahaha!

When u try, try it now

jhayforshort 2020-09-14 09:24:36
laravel_discuss-50993.jpg

jhayforshort 2020-09-14 09:24:36
laravel_discuss-50992.jpg

jhayforshort 2020-09-14 09:24:37
laravel_discuss-50994.jpg

eL7alfa 2020-09-14 09:25:04
I’ve 2 go out soon, chat me personally if I don’t reply, will check while back
jhayforshort 2020-09-14 09:25:32
eL7alfa 2020-09-14 09:25:04
I’ve 2 go out soon, chat me personally if I don’t reply, will check while back

Okie sir, I appreciate your help! Thank you so much!

eL7alfa 2020-09-14 09:26:18
jhayforshort 2020-09-14 09:24:36

What is property name

eL7alfa 2020-09-14 09:26:38
That’s not product_name, you should check property name inside show.blade.php
jhayforshort 2020-09-14 09:27:07
laravel_discuss-50999.jpg

jhayforshort 2020-09-14 09:27:43
<input type=”text” class=”form-control” style=”text-transform: capitalize;” placeholder=”{{$imports->stores->name}}”
eL7alfa 2020-09-14 09:27:48
jhayforshort 2020-09-14 09:27:07

Relation?

jhayforshort 2020-09-14 09:28:06
laravel_discuss-51003.jpg

eL7alfa 2020-09-14 09:28:07
jhayforshort 2020-09-14 09:27:43
<input type=”text” class=”form-control” style=”text-transform: capitalize;” placeholder=”{{$imports->stores->name}}”

You have to check your relation first

jhayforshort 2020-09-14 09:28:32
because my data is null but we have a data, it should not be error
|