How to update data in laravel by modal without refresh page and ajax?

|
Saeed_RB92 2020-06-24 21:02:28
sobirjonovs 2020-06-24 21:01:54
Yes, I had added it before

but this say that course not exists.

sobirjonovs 2020-06-24 21:03:02
see……
cayetanohosma 2020-06-24 21:03:19
Saeed_RB92 2020-06-24 21:02:28
but this say that course not exists.

That’s the point, or the relationship is not done or the course with that Id doesn’t exist

sobirjonovs 2020-06-24 21:04:40
Oooohh
Saeed_RB92 2020-06-24 21:04:59
sobirjonovs 2020-06-24 21:03:02
see……

so check your database and see relationship or data . one of them is wrong

cayetanohosma 2020-06-24 21:05:06
It doesn’t exist, right?
sobirjonovs 2020-06-24 21:06:03
But, I had information in courses table, then it hadn’t worked. But now it is okay if I filled info into courses table again
sobirjonovs 2020-06-24 21:06:14
cayetanohosma 2020-06-24 21:05:06
It doesn’t exist, right?

yea

sobirjonovs 2020-06-24 21:06:47
Thank you guys!!!
sobirjonovs 2020-06-24 21:06:57
I have wasted my 4 hours😭🤦🏻‍♂️🤦🏻‍♂️🤦🏻‍♂️
2020-06-24 21:07:00
DesolatorMagno 2020-06-24 21:00:59
and remember that you are creating, so you need to take care of fillable.

Why not using guarded except fillable?

Saeed_RB92 2020-06-24 21:07:35
sobirjonovs 2020-06-24 21:06:47
Thank you guys!!!

your welcome

Saeed_RB92 2020-06-24 21:09:12
2020-06-24 21:07:00
Why not using guarded except fillable?

this error about relation . not data. so not different

2020-06-24 21:09:55
Saeed_RB92 2020-06-24 21:09:12
this error about relation . not data. so not different

Yeha I understand that, asked just for validating data.. Or whatever is used in fillable.

Saeed_RB92 2020-06-24 21:12:21
2020-06-24 21:09:55
Yeha I understand that, asked just for validating data.. Or whatever is used in fillable.

this choice depend on your need.

cayetanohosma 2020-06-24 21:21:31
sobirjonovs 2020-06-24 21:06:57
I have wasted my 4 hours😭🤦🏻‍♂️🤦🏻‍♂️🤦🏻‍♂️

No worries, you aren’t the first one… And neither the last one 😁

cayetanohosma 2020-06-24 21:24:16
2020-06-24 21:07:00
Why not using guarded except fillable?

Due to the treatment is different. The guarded are not exposed and you can not do a massive insert. I guess

2020-06-24 21:59:33
please anyone can help me
2020-06-24 22:00:22
laravel_discuss-42869.jpg
I wanna count the number of users per month
2020-06-24 22:03:28
laravel_discuss-42870.jpg
I made this but it’s not worked
Marvixino 2020-06-24 22:16:11
I have problem with Vue router, path : “/read/:id/”return /read/api/v1/read … any ideas why & how to fix it?
Marvixino 2020-06-24 22:17:13
Marvixino 2020-06-24 22:16:11
I have problem with Vue router, path : “/read/:id/”return /read/api/v1/read … any ideas why & how to fix it?

the path should be /api/v1/read

DesolatorMagno 2020-06-24 22:20:10
2020-06-24 22:03:28
I made this but it’s not worked

You should try to use groupby in the query not in the collection resultant

Marvixino 2020-06-24 22:20:34
2020-06-24 22:03:28
I made this but it’s not worked

add ->toSql() to see what is the raw query

Marvixino 2020-06-24 22:29:12
Marvixino 2020-06-24 22:17:13
the path should be /api/v1/read

I mean here that when I add param to Vue path, the Axios post request adds ‘read’ to the API path

SWAT 10101 2020-06-24 22:36:46
Any one can help me with my problem
SWAT 10101 2020-06-24 22:38:33
laravel_discuss-42879.jpg
I’m try to run the code in red box in other page but it did not work I cannot get TEST world in browser console
SWAT 10101 2020-06-24 22:39:38
laravel_discuss-42880.jpg
I want the code load when this page is reader
SWAT 10101 2020-06-24 22:40:19
laravel_discuss-42881.jpg
This main page
SWAT 10101 2020-06-24 22:44:59
when I try @section with @stop instead of @push with @endpush the code load in all pages
SWAT 10101 2020-06-24 22:46:01
Any idea ?
PetitJosephKMK 2020-06-24 23:09:40
Hello everybody, I am Petit Joseph KMK. And I am beginner in web development .
AlkaouDembele 2020-06-24 23:27:01
https://www.youtube.com/watch?v=We0JOkXnJHA&t=1400s

Tutoriel Laravel Livewire – 6 – Pagination et FiltresYouTube
Dans cette vidéo, nous créons notre cinquième application avec Laravel Livewire.

Formation sur Laravel: https://www.youtube.com/playlist?list=PLlxQJeQRaKDSnp4hbA3nJj_OnB0SCQLBU

Marvixino 2020-06-24 23:30:53
Marvixino 2020-06-24 22:29:12
I mean here that when I add param to Vue path, the Axios post request adds ‘read’ to the API path

laravel_discuss-42889.jpg

alfredolopez80 2020-06-25 01:21:01
laksomphear 2020-06-24 17:20:51
How to update data in laravel by modal without refresh page and ajax?

mayby datatables

isofdev 2020-06-25 01:27:19
laravel_discuss-42896.jpg
Hi guys,
I really need help. Want to create a dynamic fields input this is my view
isofdev 2020-06-25 01:32:25
What I want is when I select one of the contract_type_id like CDD the two following fields are displayed and if the contract_type_id is different from CDD the fields are not displayed
DesolatorMagno 2020-06-25 01:33:21
Many persons here, really need help, but you gotta help us before we can help you, what you mean by Dynamic, what did you try already, where is it failing, etc.
DesolatorMagno 2020-06-25 01:34:08
JS, you need JS to hide and show.
isofdev 2020-06-25 01:34:52
DesolatorMagno 2020-06-25 01:34:08
JS, you need JS to hide and show.

yes

isofdev 2020-06-25 01:37:06
laravel_discuss-42901.jpg
I have tried to do this but it doesn’t work
DesolatorMagno 2020-06-25 01:40:24
Had time that i didn’t se so much JQuery together, and if i remember well you are applying it to every Select in the page.
DesolatorMagno 2020-06-25 01:41:26
Go smaller, try console.log first, to see if you enter, them try printing the value.
isofdev 2020-06-25 01:44:15
DesolatorMagno 2020-06-25 01:41:26
Go smaller, try console.log first, to see if you enter, them try printing the value.

ok I TRY IT

DesolatorMagno 2020-06-25 01:45:54
i would use a addEventListener for that select specific, and change the attribute of the others 2 select using their id, or well, the id that contain them.
DesolatorMagno 2020-06-25 01:51:37
i am helping you, at the same time i am talking with 2 client and making a cost (money/time) estimate of a app to give a price for a possible project.
isofdev 2020-06-25 02:01:39
DesolatorMagno 2020-06-25 01:51:37
i am helping you, at the same time i am talking with 2 client and making a cost (money/time) estimate of a app to give a price for a possible project.

thank you I have done it

DesolatorMagno 2020-06-25 02:01:49
👍.
duruiz 2020-06-25 02:07:14
hello! here I am needing help again.
I have a categories table with belongsToMany relationships with more than one table, webinars and news for example.

There is an elegant way to retrieve all the webinars and news based on the category without going to every one of the then individually?

duruiz 2020-06-25 02:08:21
or do I need to go…
Category::findOrFail($category->id)->webinars()to get webinars, doing the same with every other one and merging them at the end?
|