Laravel CRUD: Bootstrap Modal: Insert Data into Database (POP UP Modal)

Sdílet
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...

Komentáře • 35

  • @beatrizalves3108
    @beatrizalves3108 Před 3 lety +5

    Best tutorial ever! I've been looking for this kind of content for a long time. Awesome!

  • @piotrkowalczak4270
    @piotrkowalczak4270 Před 2 lety +1

    Great tutorial, wish you all the best man :)

  • @AmitKumar-un6so
    @AmitKumar-un6so Před 3 lety +1

    Thanks a lot your teaching way is very impressive please make a video on data insert in bootstrap 4 datatable

  • @carlogalola7826
    @carlogalola7826 Před 3 lety +1

    How about if you have multiple modal or with 'next' button to go to next modal and second modal have a save button

  • @Pumhesho
    @Pumhesho Před 5 lety +1

    Gracias por los cositos

  • @lukengirubiu6492
    @lukengirubiu6492 Před 4 lety

    Thanks much

  • @beatrizsilva1536
    @beatrizsilva1536 Před 3 lety

    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?

  • @hammadhassan2754
    @hammadhassan2754 Před 4 lety +1

    Undefined offset: 1
    please how to solve this error?

  • @rabbihossain1086
    @rabbihossain1086 Před 3 lety

    thanks, sir.

  • @gorreon
    @gorreon Před 2 měsíci

    I'm just curious. If the inputs were wrong, or validated, wouldnt that close the modal?

  • @cengsemihsahin
    @cengsemihsahin Před 2 lety

    THANKS

  • @pritipandya862
    @pritipandya862 Před 4 lety

    When i insert data success message in not shown to me

  • @elodia_pers3206
    @elodia_pers3206 Před 3 lety

    thanks

  • @RHCIPHER
    @RHCIPHER Před 4 lety

    in laravel 6 put action={{url('employee/create')}} only if you using Route::resource not get

  • @hello666sec2
    @hello666sec2 Před 3 lety

    woowwww its cool

  • @SnakeErw98
    @SnakeErw98 Před 4 lety +1

    Thanks man, your video helped me a lot. Any way to donate you?

    • @FundaOfWebIT
      @FundaOfWebIT  Před 4 lety

      +918880202617 Google Pay/PayTm/phonepe..
      UPI Money id: 8880202617@ybl
      PayPal: www.paypal.me/vedprakashn
      Website: fundaofwebit.com
      Thank you. Keep supporting.

  • @rasulali4690
    @rasulali4690 Před 3 lety

    Boom!

  • @wacontreras
    @wacontreras Před 4 lety +2

    Hi , Can you share the code please ?

  • @savanrathod7943
    @savanrathod7943 Před 2 lety +1

    Route not working in laravel 8 it shows target class does not exist

  • @maulanadayat7831
    @maulanadayat7831 Před 4 lety +3

    Please add Link Github Project

  • @samairaakhtar1690
    @samairaakhtar1690 Před rokem

    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....

  • @RHCIPHER
    @RHCIPHER Před 4 lety +1

    guys i guess it's action '{{}} ' not action 'action=({{}}) ' it worked for me

  • @user-lj1nk1tq9r
    @user-lj1nk1tq9r Před rokem

    i understand but one problem employee model confusion

  • @sibityson6619
    @sibityson6619 Před 3 lety

    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

  • @umitcatal
    @umitcatal Před rokem

    validation ?

  • @arczhar1204
    @arczhar1204 Před 3 lety

    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?

    • @FundaOfWebIT
      @FundaOfWebIT  Před 3 lety

      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.

    • @arczhar1204
      @arczhar1204 Před 3 lety

      @@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

    • @FundaOfWebIT
      @FundaOfWebIT  Před 3 lety

      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');

    • @arczhar1204
      @arczhar1204 Před 3 lety

      @@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

  • @geoffvelasquez7700
    @geoffvelasquez7700 Před 3 lety

    oke