Laravel 5.8 Ajax Crud Tutorial - Insert or Add Data

Поделиться
HTML-код
  • Опубликовано: 6 апр 2019
  • Learn How to insert or Add data into MySQL database in Laravel 5.8 using Ajax and Bootstrap modal with file upload. How to Insert Data in MySQL table using Ajax in Laravel 5.8. How to insert data in Laravel 5.8 using model. How to insert data in Laravel 5.8 using Ajax. How to make Ajax Crud Application in Laravel 5.8 framework.
    For Source code - www.webslesson.info/2019/04/l...

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

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

    Thanks alot, really good and help me

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

    Nice video..You explained it very well.

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

    Great

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

    what if the image is on different table is it possible to innerjoin during the insert query ?

  • @MuhammadAdnan-gx6rd
    @MuhammadAdnan-gx6rd 5 лет назад

    Nice. ... kindly do a advance blog using Laravel + ajax thanks

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

    what if i have a foreign key on a table..and instead of showing the id..i want to show the name of the data? for example category_id which is a foreign key to my item table?

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

    second, new added data is shown after reloading the page.. if we had to reload the page then why would we use ajax?

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

    Nice...but I have a problem in updating the image in Laravel using ajax. My data is updating but the image is not...please help...

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

    Sir, as i ran the php artisan migrate command i got this error in my console Illuminate\Database\QueryException violation: 1071 Specified key was too alter table `users` add unique `users at C:\xampp\htdocs\laravel-apps\data illuminate\Database\Connection.php:664 . How do i fix this error?

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

    Thank you

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

    url:"/ajax-crud/"+id+"/edit", that route send error..

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

    Route [ajax-crud] not defined error...
    Have named my controller as AjaxCrudController..
    And my route as Route::resource('ajax', 'Ajaxcrudcontroller');..
    Please help

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

    hello webslesson, i am really impressed by your channel can you please tell me why it is user_table-Ajax error

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

      I also encountered this type of error and i used the solution below:
      first, you should look if the number of table headers are the same with the number of columns you want to add(the action header is included at the count)
      If the above condition is already fulfilled and the error still persists, you should look if the DB table name is right(you should change "AjaxCrud::" to db table name that you are using)

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

    my success message is not showing although i did the same thing

  • @a.alphbond9003
    @a.alphbond9003 5 лет назад

    "return response()->json(['errors'] => $error->errors()-all())" @12.50 gives syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')'

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

      "return response()->json(['errors'] => $error->errors()->all())" you missed ->

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

    Make a search bar in php video

  • @muhammadzain8184
    @muhammadzain8184 5 лет назад +1

    data is not inserting in db. means add button didn't respond anything .

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

      how did you fix it, sir? i have the same problem as you

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

      instead using use it will work

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

      $('#create_record').click(function() {
      $('#formModal').modal('show');
      }); this is only for popuping the modal, We need to write some code to trigger the submit button also Hence add the code given bellow, That will work.

      $('#create_record').click(function() {
      $('#action_button').val("Add");
      $('#action').val("Add");
      $('#formModal').modal('show');
      });

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

      vageeshan vageesh
      $('#create_record').click(function() {
      $('#formModal').modal('show');
      }); this is only for popuping the modal, We need to write some code to trigger the submit button also Hence add the code given bellow, That will work.

      $('#create_record').click(function() {
      $('#action_button').val("Add");
      $('#action').val("Add");
      $('#formModal').modal('show');
      });

  • @TunePlay
    @TunePlay Год назад

    same system raw php please

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

    please make a video for live streaming in php

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

      hi can you help me

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

      table id=user_table - Ajax error how to fix this thanks

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

      @@uraamasif4613 may code is like that .....but thanks for the replay

  • @linradaz4281
    @linradaz4281 5 лет назад +2

    table id=user_table - Ajax error how to fix this thanks

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

      same error also showing in my project

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

      can you fix it ?

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

      i have the same error ,, an i can not solve it ?

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

      check your appachi/Tomcat and Mysql server in running or not? You must need active serverconnection + mysql connection.

  • @ianoumo96
    @ianoumo96 5 лет назад +1

    Audio sucksssssss