Do you have a pivot table?

|
Rajat Agrawal 2020-07-07 11:55:21
laravel_discuss-44013.jpg
Photo from Rajat
Rajat Agrawal 2020-07-07 11:55:39
Mohammad_Agbareya 2020-07-07 11:53:37
try with 200 as second parameter

ok

Mohammad_Agbareya 2020-07-07 11:58:00
laravel_discuss-44015.jpg
laravel documentaion
Rajat Agrawal 2020-07-07 11:58:29
Mohammad_Agbareya 2020-07-07 11:53:37
try with 200 as second parameter

🙏🙏 it worked when i restarted my vs code

Rajat Agrawal 2020-07-07 11:59:18
Mohammad_Agbareya 2020-07-07 11:58:00
laravel documentaion

thanks brother

Mohammad_Agbareya 2020-07-07 11:59:57
I think you also can simply return the array and Laravel will do the rest
return [‘success’=>’Got Simple Ajax Request.’];
Mohammad_Agbareya 2020-07-07 12:00:10
you are welcome
focalfossa20 2020-07-07 12:14:09
laravel_discuss-44022.jpg

focalfossa20 2020-07-07 12:14:20
Hi guys, I’m getting error like this
focalfossa20 2020-07-07 12:14:33
https://pastebin.com/JWX77FUf this is my controller

[PHP] Controller – Pastebin.comPastebin
Mohammad_Agbareya 2020-07-07 12:17:14
check DailyTest $fillable array
focalfossa20 2020-07-07 12:23:33
Okay thanks
mark kariuki 2020-07-07 12:30:13
focalfossa20 2020-07-07 12:14:20
Hi guys, I’m getting error like this

laravel_discuss-44027.jpg
dd there first to see whether u’r passing everything

focalfossa20 2020-07-07 12:32:36
mark kariuki 2020-07-07 12:30:13
dd there first to see whether u’r passing everything

laravel_discuss-44028.jpg
when im using dd, im getting chapter id is null, but in my view im fill the chapter id like this

mark kariuki 2020-07-07 12:34:31
focalfossa20 2020-07-07 12:32:36
when im using dd, im getting chapter id is null, but in my view im fill the chapter id like this

i dont understand the language there,,Bab is where you are selecting the chapter

mark kariuki 2020-07-07 12:34:49
,,if its there the problem is in your form
mark kariuki 2020-07-07 12:34:59
Show the code where the form is
focalfossa20 2020-07-07 12:35:08
mark kariuki 2020-07-07 12:34:31
i dont understand the language there,,Bab is where you are selecting the chapter

bab = chapter

mark kariuki 2020-07-07 12:36:44
focalfossa20 2020-07-07 12:35:08
bab = chapter

your form please i need to see that part

focalfossa20 2020-07-07 12:37:35
mark kariuki 2020-07-07 12:36:44
your form please i need to see that part

https://pastebin.com/HwE0yK7T this is my form

[PHP] create.blade.php – Pastebin.comPastebin
Mohammad_Agbareya 2020-07-07 12:38:18
looks good
Mohammad_Agbareya 2020-07-07 12:40:27
but all options will have selected attribute
mark kariuki 2020-07-07 12:41:02
focalfossa20 2020-07-07 12:37:35
https://pastebin.com/HwE0yK7T this is my form

try remove the selected attribute

focalfossa20 2020-07-07 12:41:28
mark kariuki 2020-07-07 12:41:02
try remove the selected attribute

okay

focalfossa20 2020-07-07 12:43:54
mark kariuki 2020-07-07 12:41:02
try remove the selected attribute

still with the same error

mark kariuki 2020-07-07 12:49:16
focalfossa20 2020-07-07 12:43:54
still with the same error

show us the dd you are getting

mark kariuki 2020-07-07 12:50:14
or there are no records in chapter table
focalfossa20 2020-07-07 12:52:05
mark kariuki 2020-07-07 12:49:16
show us the dd you are getting

laravel_discuss-44043.jpg
this is the dd when im try to save file

Mohammad_Agbareya 2020-07-07 12:54:54
dd for $request->all()
mark kariuki 2020-07-07 12:55:33
last option check here {{$chapter->chapter_id}} do you have a record as chapter_id or its supposed to be {{$chapter->id}}
focalfossa20 2020-07-07 13:08:00
mark kariuki 2020-07-07 12:55:33
last option check here {{$chapter->chapter_id}} do you have a record as chapter_id or its supposed to be {{$chapter->id}}

alhamdulillah, solve guys, im just typo in chapter_id, thank you all

Mohammad_Agbareya 2020-07-07 13:09:52
alhamdulillah
mark kariuki 2020-07-07 13:14:37
focalfossa20 2020-07-07 13:08:00
alhamdulillah, solve guys, im just typo in chapter_id, thank you all

Great

alejandrostivanello 2020-07-07 14:28:52
Ubamiller 2020-07-07 09:27:49
do you have a pivot table?

Yes

alejandrostivanello 2020-07-07 14:29:14
Ubamiller 2020-07-07 09:27:49
do you have a pivot table?

I found my error :,-)

Ubamiller 2020-07-07 14:37:23
focalfossa20 2020-07-07 12:32:36
when im using dd, im getting chapter id is null, but in my view im fill the chapter id like this

is the chapter_id passing your validation?
I can’t see the image but I want assume you are not passing the chapter_id to the current view

Ubamiller 2020-07-07 14:37:39
alejandrostivanello 2020-07-07 14:29:14
I found my error :,-)

what was the error

devmansurov 2020-07-07 14:38:15
Как с помощью php можно получить автокомплит адресов (suggests) используя google или yandex API’s ? Через google попробовал и говорить что нужно billing аккаунт
Ubamiller 2020-07-07 14:39:29
Ubamiller 2020-07-07 14:37:23
is the chapter_id passing your validation?
I can’t see the image but I want assume you are not passing the chapter_id to the current view

I just saw that you have solved it👍👍👍

alejandrostivanello 2020-07-07 15:01:29
Ubamiller 2020-07-07 14:37:39
what was the error

The link with the pivot was wrong 🤦🏻‍♂️

2020-07-07 15:04:39
i have question any body yes?????
Mohammad_Agbareya 2020-07-07 15:07:46
ask
2020-07-07 15:08:34
If user wants to login with api google, i need to save the information database and I need to have a separate table.
alwad3ani 2020-07-07 15:26:04
laravel_discuss-44061.jpg

alwad3ani 2020-07-07 15:26:15
alwad3ani 2020-07-07 15:26:04

Hi,, how disable future dates after today?? ,, in data range

2020-07-07 15:27:04
2020-07-07 15:08:34
If user wants to login with api google, i need to save the information database and I need to have a separate table.

help me please😊

Ajay Aggarwal 2020-07-07 16:17:58
Hey Guys, I want to merge a feature branch into master branch after number of months of development. And i am facing conflicts in many files. Is there any way to merge all latest changes to master branch without conflicts. Like allow merge to accept all changes from features branch into master branch to auto resolve conflicts.
Ubamiller 2020-07-07 16:21:09
2020-07-07 15:08:34
If user wants to login with api google, i need to save the information database and I need to have a separate table.

where you able to get google response?
if you got it , it comes in Json format you can then save it and redirect the user to the page you intended

dennis 2020-07-07 16:22:38
Anybody who knows the documentation provider used in laravel documentation
isofdev 2020-07-07 16:55:44
Ajay Aggarwal 2020-07-07 16:17:58
Hey Guys, I want to merge a feature branch into master branch after number of months of development. And i am facing conflicts in many files. Is there any way to merge all latest changes to master branch without conflicts. Like allow merge to accept all changes from features branch into master branch to auto resolve conflicts.

You have to config merge tool
And run git mergetool

Flow this tutorial it can help you to fix it

https://stackoverflow.com/Questions/161813/How-to-Resolve-Merge-Conflicts-in-Git

How to resolve merge conflicts in GitStack Overflow
How do I resolve merge conflicts in Git?
|