Laravel CRUD: Bootstrap Modal: Insert Data into Database (POP UP Modal)
Vložit
- čas přidán 25. 07. 2024
- Here. in this video, the Insertion of Data into DataBase with the BootStrap Modal (POP UP Modal) is done in Laravel...
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...
Best tutorial ever! I've been looking for this kind of content for a long time. Awesome!
Great tutorial, wish you all the best man :)
Thanks a lot your teaching way is very impressive please make a video on data insert in bootstrap 4 datatable
How about if you have multiple modal or with 'next' button to go to next modal and second modal have a save button
Gracias por los cositos
Thanks much
Hi! can you help me? I need to create a session CRUD. I have to pass data from one form to another, and include this second form in the database ... Is it possible?
Undefined offset: 1
please how to solve this error?
thanks, sir.
I'm just curious. If the inputs were wrong, or validated, wouldnt that close the modal?
THANKS
When i insert data success message in not shown to me
thanks
in laravel 6 put action={{url('employee/create')}} only if you using Route::resource not get
woowwww its cool
Thanks man, your video helped me a lot. Any way to donate you?
+918880202617 Google Pay/PayTm/phonepe..
UPI Money id: 8880202617@ybl
PayPal: www.paypal.me/vedprakashn
Website: fundaofwebit.com
Thank you. Keep supporting.
Boom!
Hi , Can you share the code please ?
Route not working in laravel 8 it shows target class does not exist
Please add Link Github Project
Sir plzzz ek aisa vdo bnaye jisme view click hone pr popup modal open ho or usme wk particular user ka Sara data display ho....
guys i guess it's action '{{}} ' not action 'action=({{}}) ' it worked for me
this is from form action?
i understand but one problem employee model confusion
i ma facing this Error
127.0.0.1:8000/['action'%20=%3E%20'App/Http/Controllers/MemberController@store']
this is in url
and on page i face 404 not find
please give me answer
validation ?
Kinda weird everything form 1st video to this its all working except showing the modal form :( Why is this I just follow everything in the video :) does the version of laravel affect this?
Laravel version does not effect..
To work modal..
Include
1st jQuery.js
2nd bootstrap.js
3rd check your modal id from where your button name modal attribute shld match both as same..
Then it will work fine.
@@FundaOfWebIT The only modal does not pop up is the edit modal.
When i click the button edit nothing appear, but when i click add data the add modal form pop up, i already triple check the code,jquery, bootstrap nothing wrong,all codes in the video working except showing the edit modal :( if i can only show the code here anyways i think my laptop has problem
When you click on edit btn using class... Check using alert('hello') that your script is working fine...
After that check your form of modal id... N then come to ur script n then check your id is correct in your modal function..
Modal id="myeditmodal"
$('#myeditmodal').modal('show');
@@FundaOfWebIT tried changing btn using alert is not working, here is the code
Modal title
×
{{csrf_field() }}
{{ method_field('PUT') }}
First Name
Last Name
Address
Mobile
Close
Update Data
Laravel CRUD: with Bootstrap Modal
@if(count($errors) > 0)
@foreach ($errors->all() as $error)
{{$error}}
@endforeach
@endif
@if(\Session::has('success'))
{{\Session::get('success') }}
@endif
Add Data
ID
First Name
Last Name
Address
Mobile No.
Action
ID
First Name
Last Name
Address
Mobile No.
Action
@foreach ($emps as $empdata)
{{ $empdata->id }}
{{ $empdata->fname }}
{{ $empdata->lname }}
{{ $empdata->address }}
{{ $empdata->mobile }}
EDIT
DELETE
@endforeach
$(document).ready(function () {
var table = $('#datatable').DataTable();
//Start Edit Record
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);
$('#fname').val(data[1]);
$('#lname').val(data[2]);
$('#address').val(data[3]);
$('#mobile').val(data[4]);
$('#editForm').attr('action','/employee/'+data[0]);
$('#editModal').modal('show');
});
//End Edit Record
});
i gues there is problem with the version of javascript, in your video the version 1.10.18 while im using 1.10.21
oke