Laravel CRUD: Bootstrap Modal: Edit and Update the Data using DataTable in Laravel

  Рет қаралды 74,619

Funda Of Web IT

Funda Of Web IT

Күн бұрын

Here.. in this video, the Data is fetched and displayed into Bootstrap Modal Form and from there Update the Data in that Model in Laravel... using DataTable.
Update data with validation:
• Laravel Ajax CRUD-3: E...
CRUD - BootStrap Modal : Insert Data in Laravel
• Laravel CRUD: Bootstra...
CRUD - BootStrap Modal : Fetch Data in Laravel
• Laravel CRUD: Bootstra...
CRUD - BootStrap Modal : Edit and Update Data in Laravel
• Laravel CRUD: Bootstra...
CRUD - BootStrap Modal : Delete Data in Laravel
• Laravel CRUD: BootStra...

Пікірлер: 83
@NoOne-qd2yp
@NoOne-qd2yp 3 жыл бұрын
Thank you for the video. Requires Bootstrap CDN. Do you have sample for Tailwind CSS instead?
@luthfifadlerynaldy
@luthfifadlerynaldy 3 жыл бұрын
thanks bro, thats help... still awesome!
@handlerindo-tv4393
@handlerindo-tv4393 2 жыл бұрын
thanks man..very usefull tutorial
@ibrahimsherif3261
@ibrahimsherif3261 4 жыл бұрын
hey what if i want to show more data that is not shown in the table but they are available in the db ?
@beatrizalves3108
@beatrizalves3108 3 жыл бұрын
The search option made in the first 6 min of the video didn't work out, even though the code seems to be the same as yours. I'm using Laravel 7x, can that be the reason?
@rclair7650
@rclair7650 4 жыл бұрын
Very helpful
@yudamuhtar9628
@yudamuhtar9628 4 жыл бұрын
I have a problem "creating default object from empty value" for id with value 1 and 2 can, but for id other than that, I get an error like that. help me sir
@CHANSOPHANAOFFICIAL
@CHANSOPHANAOFFICIAL 5 жыл бұрын
Thanks you for share
@fundaofwebit
@fundaofwebit 5 жыл бұрын
Thank you for supporting me. 😊 Plz subscribe, like and share.
@bejustu587
@bejustu587 3 жыл бұрын
make videos related to showing bootstrap model when we click on particular id it will display the popup detail based on the clicked id. thank you
@davidmcglone409
@davidmcglone409 2 жыл бұрын
He just did... All you need to do is use the same procedure to edit the data, but eliminate the form fields.
@ramadanpratama7653
@ramadanpratama7653 5 жыл бұрын
im sorry sir, why my data table cant work like yours. thanks
@davidmcglone409
@davidmcglone409 2 жыл бұрын
Having to specify an id in the js, doesn't seem like a good solution. What if the id of any of the rows changes?
@izclubcom
@izclubcom 4 жыл бұрын
How to update data when i have Files on form ???
@Pumhesho
@Pumhesho 5 жыл бұрын
Gracias por los cositos
@fundaofwebit
@fundaofwebit 5 жыл бұрын
gracias por apoyarme.. Por favor, dime y suscríbete a mi canal. :-)
@darenchris7382
@darenchris7382 3 жыл бұрын
Sir,please answer me,I followed each single step ya made,but the modals not popping up,please sir
@bramjanuar4147
@bramjanuar4147 4 жыл бұрын
Sir i wanna ask something, i'm on build an application with laravel and i'm stuck in a case, so i build an input form where i want to use modal pop up to show and search users data(like name and phone number), after that i'm select the user with a button select and automaticly the data inputed into a input form, how to do that with modal sir? selected data and send that data to input form, i've been so frustrated with that, thank you very much sir. Sorry for my bad english
@Charles-mi6wx
@Charles-mi6wx 2 жыл бұрын
same problem here, do you get that problem now?
@sokdimand680
@sokdimand680 2 жыл бұрын
The update won't work for me, when I click Update is show nothing. how can I check if the ID is passing to Controller?
@franciscojavierchamorrofie3100
@franciscojavierchamorrofie3100 3 жыл бұрын
What if I don't want to display the ID of my models in the table? How would I get the ID in the jQuery code to delete it from the Database as well?
@fundaofwebit
@fundaofwebit 3 жыл бұрын
Use input type="hidden" And call the id in this input tag.. And fetch it by jquery .val()
@weenamariepaddayuman6997
@weenamariepaddayuman6997 3 жыл бұрын
any solution? Missing argument 2 for App\Http\Controllers\systemcontroller::update()
@HoangVu-lr8mh
@HoangVu-lr8mh 4 жыл бұрын
One tip for anyone who suffered the error DataTable is not a function, just add defer attribute to the two datatable script
@mosesegboh
@mosesegboh 3 жыл бұрын
give example please
@laravelexcerpt4796
@laravelexcerpt4796 2 жыл бұрын
Good .. but how to show validation inside module when click btn save
@rumanhossain7056
@rumanhossain7056 3 жыл бұрын
Hi, when I try to update the last row of my data table it's appeared in the previous row of it. Only for the last row showing this problem.
@mohamedrhaima9201
@mohamedrhaima9201 3 жыл бұрын
same problem
@manishkumaraditya9818
@manishkumaraditya9818 3 жыл бұрын
Sir plz create videos on image also with Ajax bootstrap Modal
@makkahwi
@makkahwi 4 жыл бұрын
I have a question, is the any similar tool to datatables but to filter columns using dropdown lists instead of search box?
@fundaofwebit
@fundaofwebit 4 жыл бұрын
Select2 is dropdown search option it gives.. Jquery..
@ramadanpratama7653
@ramadanpratama7653 5 жыл бұрын
The PUT method is not supported for this route. Supported methods: GET, HEAD, POST. i dnt know wht i 've t do. can someone help me?
@miminghadoop
@miminghadoop 3 жыл бұрын
I'm also having that problem. Did you have a solution for that?
@yolumil
@yolumil 3 жыл бұрын
@@miminghadoop @method('PUT') in your form
@syaahir9588
@syaahir9588 3 жыл бұрын
have u got the solution,, because im having the same problem now
@fundaofwebit
@fundaofwebit 3 жыл бұрын
Add this in your form : @method('PUT') And your route will be as : Route::put
@syaahir9588
@syaahir9588 3 жыл бұрын
@@fundaofwebit what u mean by Route::put,,i should write it in my web.php?
@uliklengket3598
@uliklengket3598 2 жыл бұрын
di function read() ada $(#read) itu dari mn?? merujuk kemana min?
@sandeshdurgekar8
@sandeshdurgekar8 3 жыл бұрын
how to retrive file url
@nancykumari9417
@nancykumari9417 2 жыл бұрын
my update popup is not showing
@alexsanderhendrawijaya7896
@alexsanderhendrawijaya7896 2 жыл бұрын
sir how to validate the edit, this case not shown the edit for validation. because whenever validation fails, the modal will closed and need to recalled again. How to do that? thansk
@fundaofwebit
@fundaofwebit 2 жыл бұрын
kzbin.info/www/bejne/p4KUo3aYjLeLlas Let's check the condition in if condition as response.status == 422 (dont close modal) and response.status == 200 (your success activity)
@tienattr8227
@tienattr8227 3 жыл бұрын
Can i get your this source code, please ?
@bukkejiswanth8644
@bukkejiswanth8644 Жыл бұрын
Edit operation is not working..
@nikolacvetkovic4549
@nikolacvetkovic4549 5 жыл бұрын
@Funda_of_Web_IT Can you please share the link to the source code?
@fundaofwebit
@fundaofwebit 5 жыл бұрын
Sorry to Say. i did not keep any backup of this video. Thank you for supporting me. Plzz Subscribe, like n share. :-)
@nikolacvetkovic4549
@nikolacvetkovic4549 5 жыл бұрын
@@fundaofwebit No problem, I found another example elsewhere.. Thanks for the video!
@kenny4971
@kenny4971 5 жыл бұрын
@@nikolacvetkovic4549 where did you find an example?
@nikolacvetkovic4549
@nikolacvetkovic4549 5 жыл бұрын
@@kenny4971 There are many actually. Some are better then others, but all that I found require some centralization if you are going to use dataTables across your application with different models and etc. Here is one: github.com/avinashn/Ajax-CRUD-example-in-laravel
@kenny4971
@kenny4971 5 жыл бұрын
@@nikolacvetkovic4549 yes I've seen this one, i was looking to do more customozations by adding an action column and having aquery from multiple tables. You've seen anything along those lines?
@jiijii2454
@jiijii2454 4 жыл бұрын
Hello, I've used this method and actually I made it work but now it doesn't. There is an error in the console saying: jquery-3.4.1.slim.min.js:2 Uncaught TypeError: $(...).DataTables is not a function at HTMLDocument. (admin:258) at e (jquery-3.4.1.slim.min.js:2) at t (jquery-3.4.1.slim.min.js:2) Can anyone help solve this?
@neonchik6768
@neonchik6768 4 жыл бұрын
Have u conneced datatable js ?
@kennethpineda6143
@kennethpineda6143 5 жыл бұрын
When i updated the data is not working. i copy every single code but still is not working. why?
@fundaofwebit
@fundaofwebit 5 жыл бұрын
Check your id or and make sure... ur edit popup model id is different from ur inserting popup model... bczz... it clashes... This might be the for this ..
@kennethpineda6143
@kennethpineda6143 5 жыл бұрын
@@fundaofwebit The popup modal is working but when i edit new data is not working. i got an error 'no message' the error i got
@fundaofwebit
@fundaofwebit 5 жыл бұрын
@@kennethpineda6143 .. ur input type id .... of edit model... and inser t model ... should not b same.... Then only.. it cn fetch the data.
@hassannasir1222
@hassannasir1222 2 жыл бұрын
script code ??? anyone can send me a link of script code
@neonchik6768
@neonchik6768 4 жыл бұрын
I think the name of the video is too load for js libary
@charismatubagus
@charismatubagus Жыл бұрын
Hi, what if we didn't show the ID on the table? Can we still pass it into Modal?
@charismatubagus
@charismatubagus Жыл бұрын
never mind i still could do it
@fundaofwebit
@fundaofwebit Жыл бұрын
Just put the id in the button value or create attribute in the button and put the id init. And then get the id from it.
@samgeribo
@samgeribo 2 жыл бұрын
Okay
@emirceliknet1472
@emirceliknet1472 2 жыл бұрын
nobody: funda : okey
@emmamfinanga2307
@emmamfinanga2307 5 жыл бұрын
hello,,, my Edit button is not working,, why
@fundaofwebit
@fundaofwebit 5 жыл бұрын
On edit btn.. I used class="edit_btn".. for working that button.. and I used jQuery to ... so... ur button class name and jQuery button name... should b same.... . Then only ur btn wil work.
@emmamfinanga2307
@emmamfinanga2307 5 жыл бұрын
@@fundaofwebit see my button code: EDIT DELETE
@emmamfinanga2307
@emmamfinanga2307 5 жыл бұрын
and see my script: $(document).ready(function () { var table = $('#bootstrap-data-table').DataTable(); /start Edit table.on('click','.edit', function (){ $tr = $(this).closest('tr'); if($($tr).hasClass('child')){ $tr = $tr.prev('.parent'); } var data = table.row($tr).data(); console.log(data); $('#productName').val(data[1]); $('#unit_measure').val(data[2]); $('#price').val(data[3]); $('#editForm').attr('action','/addproductRoute/'+ data[0]); $('#editModal').modal('show'); }); table.on('click','.delete', function (){ $tr = $(this).closest('tr'); if($($tr).hasClass('child')){ $tr = $tr.prev('.parent'); } var data = table.row($tr).data(); console.log(data); $('#deleteForm').attr('action','/addproductRoute/'+ data[0]); $('#deleteModal').modal('show'); }); }); Please in case we can chats: on whatsApp # +255719260602 or Email: emma4082@gmail.com for further assistance
@jojonmelete5315
@jojonmelete5315 3 жыл бұрын
same problem, did u fix it?
@razorescalona1246
@razorescalona1246 2 жыл бұрын
did you guys solve this?
@mornitv7588
@mornitv7588 4 жыл бұрын
it's not work bro
@Kirja31
@Kirja31 3 жыл бұрын
Hello, okay
@toppi7755
@toppi7755 3 жыл бұрын
Okay
@Kirja31
@Kirja31 3 жыл бұрын
@@toppi7755 Okay
@ashutoshmehere5915
@ashutoshmehere5915 3 жыл бұрын
sir please provide code
@saadwaheed1958
@saadwaheed1958 2 жыл бұрын
Source Code ??
Laravel CRUD: Bootstrap Modal: Insert Data into Database (POP UP Modal)
19:55
jQuery DataTables AJAX JSON example
12:59
doxalearn
Рет қаралды 81 М.
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 45 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 111 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 3,2 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 9 МЛН
Laravel 5.8 Ajax Crud Tutorial - Update or Edit Data
26:17
Webslesson
Рет қаралды 23 М.
MODAL CREATE IN LARAVEL (CRUD)
15:10
Coffee with Laravel
Рет қаралды 44 М.
Laravel 10 Ajax DataTables CRUD (Create Read Update and Delete)
21:42
7 ways to deal with CSS
6:23
Fireship
Рет қаралды 1,1 МЛН
Laravel CRUD: BootStrap MODAL: Delete Data in Laravel
14:30
Funda Of Web IT
Рет қаралды 15 М.
Laravel Livewire CRUD with Bootstrap Modal
52:05
NzCoding
Рет қаралды 38 М.
How to display data to front end from database in php laravel
7:19
HHV Technology
Рет қаралды 8 М.
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 45 МЛН