How to Insert Data using Ajax in Laravel with Datatables

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024
  • How to Insert or Add data into Mysql Database table by using Ajax in Laravel with Jquery datatables plugin. How to make One page crud application in Laravel by using Ajax and Yajra Laravel Datatables package.
    For Source Code - www.webslesson....

Комментарии • 47

  • @rasulali4690
    @rasulali4690 4 года назад +1

    The amount of positive comments like "awesome tutorial" just drives me crazy! I can't be the only "not Stephen Hawking fan" here! For god sake, why in the hell would you use this robo voice? Are you guys searched by NYPD or something? And the extra-zoom and "screw emmet style" coding are just additions for this tutorial hell. I'm writing this because tutorials can be really helpful, but I can't watch because of these unnecessary pastries

  • @LetaiefFaten
    @LetaiefFaten 6 лет назад +1

    Please haw can I change the messages' language to french (datatables' internationalisation using the i18n folder) I can't solve that

  • @vladapetkovic6393
    @vladapetkovic6393 4 года назад

    How we can protect Ajax call in Laravel.Is classical route protection is enough? How we can implement web token protection ajax call?

  • @user-td8us8xv6i
    @user-td8us8xv6i 4 года назад

    I copied all of the source code the add button still doesn't work It's show up when I press it but nothing happened when i sumbit no error message no sucess message data not added
    anyway I'm using laravel 5.8 on my project It's forced me to use 9.0 package of this so this maybe a case?

  • @arbnorsalihu700
    @arbnorsalihu700 6 лет назад +1

    Nice tutorial, everything is okay except the success message that is not displayed when submit the form. Error messages are working good but the success message: "Data Inserted" not working. So, the message is not displayed at all. The code is the same like in tutorial. I don't know where is the problem.

    • @3nails1cross11
      @3nails1cross11 5 лет назад

      Same here. "Data Inserted" didn't pops-up.

  • @chatwithgptpro
    @chatwithgptpro 6 лет назад

    this tutorial is good for intermediate level. thank you for time and effort.. thumbsup !

    • @brunoaugust9102
      @brunoaugust9102 3 года назад

      you prolly dont give a shit but if you're bored like me during the covid times then you can stream all of the latest movies and series on instaflixxer. I've been streaming with my gf these days :)

    • @barrettjamie1642
      @barrettjamie1642 3 года назад

      @Bruno August definitely, I have been using InstaFlixxer for since december myself :D

    • @rexalonzo921
      @rexalonzo921 3 года назад

      @Bruno August Definitely, I've been watching on InstaFlixxer for months myself :D

  • @dit9498
    @dit9498 6 лет назад

    great job. keep adding more and more videos of such high quality

  • @josibee
    @josibee 6 лет назад

    Brilliant! How can the post data be sent with just Javascript and not JQuery?

  • @rameshvishwakaram9001
    @rameshvishwakaram9001 5 лет назад

    Thanks for sharing this code, now it is working

  • @LetaiefFaten
    @LetaiefFaten 6 лет назад

    Excellent tutorial, please can you prepare a video to export data buttons on laravel using datatables

  • @amirrezasharifi4670
    @amirrezasharifi4670 2 года назад

    nice men . your tutorial is nice

  • @medoune89
    @medoune89 6 лет назад

    Hi mister,
    I have try this tutorial but i can't show the message "Data Inserted"... I have finished all tutorial Add, Update but i can't show the show this message... But the errors messages show well... Thank you !!!

    • @jhanhm
      @jhanhm 6 лет назад

      Visit the source code in the descripción

    • @LetaiefFaten
      @LetaiefFaten 6 лет назад

      the same problem please help !!

    • @LetaiefFaten
      @LetaiefFaten 6 лет назад +1

      Sir review the code of ajax function my problem was the problem of the ")" in that line : $('#form_output').html(data.success); (that wrote it $('#form_output').html(data).success;

    • @medoune89
      @medoune89 6 лет назад +1

      works it now ?????

    • @LetaiefFaten
      @LetaiefFaten 6 лет назад +1

      Yes, did you solve the problem ?

  • @lloyd8570
    @lloyd8570 6 лет назад

    Add button is not working, i already watched the whole tutorial but its not working in Add button

    • @lloyd8570
      @lloyd8570 6 лет назад

      Failed to load resource: the server responded with a status of 500 (Internal Server Error)

    • @dit9498
      @dit9498 6 лет назад

      I have the same problem

    • @dit9498
      @dit9498 6 лет назад

      go to description-> go to source code -> copy paste -> refresh page -> add button will work

    • @abdallamarashdih5202
      @abdallamarashdih5202 6 лет назад

      Add 'created_at' & 'updated_at' columns for your DB table with these attributes :
      type: TIMESTAMP,
      default: NULL

  • @nabeeltahir6013
    @nabeeltahir6013 6 лет назад

    Awesome Tutorial

  • @raminroshan4579
    @raminroshan4579 6 лет назад

    If you upload source code to download, everything would be fine.

  • @McEfra.
    @McEfra. 5 лет назад

    Genial!

  • @bdentertainment1346
    @bdentertainment1346 6 лет назад +1

    Sir please make facebook style Message system with Laravel

  • @ottomanempire3746
    @ottomanempire3746 5 лет назад

    for God sake, talk by yourself not by this google speaker

  • @NeresNeres-rs3bl
    @NeresNeres-rs3bl 8 месяцев назад

    Thanks for ur tutorial. Please, could u show how can i display data when I have relationship in Ajax?

  • @jhanhm
    @jhanhm 6 лет назад +1

    Nice video. Can you help us to add in this project the feature of upload Image Please?

  • @gameeiei9842
    @gameeiei9842 6 лет назад +2

    Please make CRUD about Image or file, I had a problem with it. Thanks!

    • @medoune89
      @medoune89 6 лет назад

      Yes we like this !!!!

  • @neoraj3sitedevelopment-adm376
    @neoraj3sitedevelopment-adm376 4 года назад

    For the insert new record (POST) I get: this error
    POST 127.0.0.1:8000/postdata 500 (Internal Server Error) - jquery.min.js:4

  • @ibrahimnur5011
    @ibrahimnur5011 5 лет назад

    thansk for the lesson .
    but i got some trouble
    "DataTables warning: table id=tabel_bahasa - Invalid JSON response. For more information about this error, please see datatables.net/tn/1"
    please help me to solve the problem

  • @vishalsrivastava3656
    @vishalsrivastava3656 5 лет назад

    Please explain Validation, Error Handling, and Sweet Alert type messages in LARAVEL..........please sir please..............

  • @saddamsagar2023
    @saddamsagar2023 4 года назад

    all is OK but in my code success response message not show in ID.

  • @medoune89
    @medoune89 6 лет назад

    Nice and simple tutorial ....