Laravel 8 tutorial in Hindi - Save Data in Database

Поделиться
HTML-код
  • Опубликовано: 17 сен 2020
  • In this laravel 8 video tutorial, we learn how to save data in database pagination in a simple way. This video is made by anil Sidhu in the Hindi language.
    steps of video
    Make HTML form in view
    Make Model
    Make Controller
    Make routes
    save data in db
    check and is saved on not
    Interview Question over Model

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

  • @sitararafaqat
    @sitararafaqat Год назад +4

    Interview Question:
    function addmember(Request $req)
    {
    $emp=new Employee;
    $emp->name=$req->name;
    $emp->email=$req->email;
    $emp->address=$req->address;
    $emp->save();
    $member=new Member;
    $member->name=$req->name;
    $member->email=$req->email;
    $member->address=$req->address;
    $member->save();

    return redirect('/adddata');
    }

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

    Use Eloquent Model or Query Builder. Fields created_at,updated_at are "part" of Eloquent. You either use Eloquent or insert manually those fields.

  • @SourabhSontakke-mm2hk
    @SourabhSontakke-mm2hk Год назад

    Creating default object from empty value..?

  • @Ali_Explorer708
    @Ali_Explorer708 3 года назад +2

    bro laravel me paypal integration k ak clip bnao paypal integrate buht masla krta hai..

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

    thanks

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

    Crud operation pr video bnaye ek.kaise operation perform hota h

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

    make a ful video on querys

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

    when i submit the form showing "Attempt to assign property "f_name" on null
    " this error, Tried to slove this error but not solved, please let me know how to fix this error

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

    Bro first time my program was successful. But second time in the same process there is some problem. Showing Post method is not supported in this route ... Every thing I checked..

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

      web waly page main route main apny get lekha hova ha.... wahn post lekho....

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

    Sir give me pls answer of your question

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

    how to call a resource controller?

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

    hello sir ye SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'mobile' cannot be null (SQL: insert into `friends_tb` (`name`, `mobile`) values (?, ?)) aari hai

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

      Same issue integrity constraint how to resolve it?

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

      @@aatikaati1038 use different name for route.. for view and post..

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

      please check value of mobile, check datatype of mobile. and if same error make mobile field default null.

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

    Sir iska answer aap hi batado....😬