Это видео недоступно.
Сожалеем об этом.

Laravel 8 CRUD 3: Edit and update data into database in laravel 8

Поделиться
HTML-код
  • Опубликовано: 13 май 2021
  • In this video, you will learn how to edit and update existing records/data in database.
    If the video helps you, hit the like button and subscribe to the channel. If you have any doubts or suggestions, drop them in the comments below and i will answer them.
    Thanks for watching
    Follow me on instagram : / sharma_coder

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

  • @abuzharrluqman9304
    @abuzharrluqman9304 2 года назад +1

    thanks keep updating sir because others use far older version of laravel, most of the new version cannot even work with other tutorials

  • @krinzyjewaldo1697
    @krinzyjewaldo1697 Год назад +2

    Great video. It helped me out. I started a page already. And wanted extactly this. Also I had the exact same idea for updating the fields. Using the fields that I also use to create something. I didn't exactly know how to get the update function @ the controller working. This video resolved that. $id = $request->id (from Request $request) is how I extracted the ID.
    A bit off: Its really fun, once getting familair with dd($request) for example. With that you could test and extract all kinda values.

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

      hello sir at 10:37 when you click at submit your data is updated but its showing me 404 not found i dont know why sir can you help me

  • @0x0456
    @0x0456 Год назад +1

    Great video! But how do I change only those fields that has been changed and keep the value of those fields that aren’t changed?
    E.g, if I have 4 fields, all 4 fields has a value, but when I submit I only change 2 of the fields. But as I submit the form, the 2 that wasn’t changed gets null, how do I keep it from getting null on submission and only update the values of the fields that was changed?

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

      To me it also works without using the put method. Maybe that helps. I use post on the route, and do not add @method put in the form field.

  • @Emotion_Mystery
    @Emotion_Mystery Год назад +1

    Sir, I got an error ,error:- unknown column
    Sql state

  • @XI-XIIclass
    @XI-XIIclass 2 года назад

    very nice

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

    I have a probleme the update request a parametre how do i FIX it

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

    hello sir at 10:37 when you click at submit your data is updated but its showing me 404 not found i dont know why sir

    • @yvgaming5327
      @yvgaming5327 11 месяцев назад +2

      make a route, in the "web.php" file

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

    Will do it anyway but have to edit using the model???????

    • @Emotion_Mystery
      @Emotion_Mystery Год назад +1

      No, you can also update data using DB class

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

    thanks sir it worked :D

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

    Thx it work ...but my with function do not work ..what is the problem you thik😅

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

      Just check if you have made some typing mistake in the with() bcz there is nothing complicated in that to get an error.

    • @RekhaTR-fz1kh
      @RekhaTR-fz1kh Год назад

      Same here

  • @user-rp1ej1gw2o
    @user-rp1ej1gw2o Год назад

    Did all the steps but still data is not saving in database

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

    How can i back to principal page when i click on update

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

      After you finish writing your update code, return redirect to the principal page.

  • @heenatilvani8676
    @heenatilvani8676 4 месяца назад

    Sir css not working

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

    It shows put method i snot aupported for this route
    How to solve this?

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

      Have you given @method ('PUT') inside the form ?below the csrf token

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

      @@SharmaCoder yes i have given even after shows that error

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

      What method did you register the route in the web.php? Route::put() ? Or Route::post()?

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

      @@SharmaCoder route put

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

      Inside the form open tag.. have you given method="POST" ?

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

    Source code can you upload

    • @SharmaCoder
      @SharmaCoder  2 года назад +1

      www.fundaofwebit.com/laravel-8/how-to-edit-update-data-in-laravel

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

    Its not laravel 8

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

      ruclips.net/video/dXlgWcLEg8Q/видео.html
      I have shown the installation in this video.

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

    does not work.