Laravel Tutorial for Beginners - Insert Data into Mysql Table

Sdílet
Vložit
  • čas přidán 7. 01. 2018
  • How to Insert Data into Mysql Database in Laravel. Laravel Insert Data into Mysql Database Table. Insert Data into Myql Database Table using Laravel. How to Insert values into database using Laravel. Insert Form data into database using Laravel.
    www.webslesson.info/2018/01/in...

Komentáře • 74

  • @thiagocgaleno
    @thiagocgaleno Před 5 lety

    ÚNICO TUTORIAL NO CZcams QUE EU CONSEGUI ENTENDER, PARABÉNS!

  • @ivanramos1790
    @ivanramos1790 Před 2 lety

    Starting my journey in Laravel Framework. This tutorial is easy to understand. Thank you!

  • @hassantariq8847
    @hassantariq8847 Před 6 lety +2

    Sir , Great Tutorial !

  • @ytskenazi
    @ytskenazi Před 6 lety

    thank you for this Tutorial

  • @alinasir3579
    @alinasir3579 Před 4 lety

    if I have more than one tables than should I create model and controller for all the tables seperately?

  • @bboyrealstate
    @bboyrealstate Před 6 lety +2

    perfect!

  • @vidyavageesh4219
    @vidyavageesh4219 Před 4 lety

    thank you so much it is working fine..

  • @farhanmehsood
    @farhanmehsood Před 5 lety +2

    Sir your tutorial is very nice but some prob is come in my file tell me about how to create a "master.blade.php" file

  • @amirrezasharifi4670
    @amirrezasharifi4670 Před 3 lety +2

    tank you for . this very nice

  • @felc_9415
    @felc_9415 Před 3 lety

    what if i already created tables in my database ? do i still need to migrate ?

  • @mornitv7588
    @mornitv7588 Před 5 lety +2

    Why do you use Route::resource('student','StudentController');
    Can I change ('student','StudentController') to ('Showmore','StudentController')?

    • @fatialami7551
      @fatialami7551 Před 4 lety

      nn we can t because route of ressource type has 7 routes [ get() , get(id), delete(id),update(id)...] but you should respect the name of the methods inside contreroler like delete,update just use --resources after cmd of create new controller

  • @gadhirajupraveenvarma9753

    thanku soo much sir

  • @TheMashmeister
    @TheMashmeister Před 5 lety +4

    amazing. would prefer you listen to a human voice while watching the tutorial. but if you dont want to do it .its okay you are still very helpful .

  • @DeepakVerma12
    @DeepakVerma12 Před 4 lety

    Hi Sir,
    Please one video tutorial on Ionic-laravel CRUD operations with multi-auth

  • @sinha95
    @sinha95 Před 4 lety

    Sir pls teach how to handle exception handling in laravel

  • @aadityagoel8460
    @aadityagoel8460 Před 4 lety

    sir if i don't want to store data in the student and want to store it in another table

  • @triletran2438
    @triletran2438 Před 5 lety

    i do follow steps, but the query statement is auto generated with unknown table name. how can i set my table name?

  • @iqbalhossain4878
    @iqbalhossain4878 Před 4 lety

    Thank you sir you are great

  • @techieoriname7296
    @techieoriname7296 Před 6 lety

    Nice, sorry am new to Laravel, how did u specify the table to insert to

  • @ShivaniPatel-ns8kj
    @ShivaniPatel-ns8kj Před 4 lety +1

    Not a open 127.0.0.1:8000/student/create ?

  • @faisalsiddiqui866
    @faisalsiddiqui866 Před 4 lety

    great tutorial

  • @gauravchaurasiya8678
    @gauravchaurasiya8678 Před 5 lety

    Kindly make the video on 5.7 or 5.8 version

  • @farhanmehsood
    @farhanmehsood Před 5 lety +4

    My master.blade.php file is not created automatically, so sir tell me what I do

    • @TheMashmeister
      @TheMashmeister Před 5 lety +4

      Hi, In case you are still looking for an answer, here is what you need to do. you have to create the folder/file your self. you can find the simple html/boots trap skeleton on the net.
      also dont add links to your master.blade since the newest laravel does not need to . just add this
      hope it helps

  • @hapandapoco
    @hapandapoco Před 6 lety

    i followed all the steps but when i pasted 127.0.0.1:8000/student/create othing happens.my browser did not showed anythingg ;( how to solve ittt

  • @shitalchaudhari2636
    @shitalchaudhari2636 Před 4 lety

    I created the database table successfully. But my views folder does not have the master.blade.php file. How do I solve this problem?

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

    hi, what does it mean by "errorException, use of undefined constant staff"?? please help me anyone :(

    • @renatosilva342
      @renatosilva342 Před 3 lety

      Usually errorException undefined constant is warning that occurs whenever PHP has detected the usage of an undefined constant.
      There is a problem with your variables, the ones with the dollar sign $.
      like $first_name, $last_name.
      You gotta make sure that your form is sending the parameters first_name and last_name and you are storing them
      in the right variables $first_name, $last_name.
      in your form you have to be careful with the attribute name="firstname" and name="lastname"
      you have to use these attributes to allocate their values inside of your variables $first_name and $last_name

  • @sophiaazzahra2359
    @sophiaazzahra2359 Před 5 lety

    Good tutorial.but i have problem with the form although i already fill in and submit the form but it did not save the data to database and show remainder to fill it up again.

  • @iamthejustin7420
    @iamthejustin7420 Před 3 lety +2

    Can you teach at my university?

  • @everacejewelry6546
    @everacejewelry6546 Před 4 lety

    I'm successfully conected to database and created the sutdent table by following previously tutorial, but when I following this tutorial to insert data, it give me error as
    "You're using the default database name laravel. This database does not exist.
    Edit the .env file and use the correct database name in the DB_DATABASE key."
    Anyone has similar issue, how does it happen, the conection seems fine when create table but fails when insert data.

  • @ganeshmoorthy9780
    @ganeshmoorthy9780 Před 5 lety

    My migrate file not created automatically ,so sir tell what i do ?

    • @RoosSkywalker
      @RoosSkywalker Před 4 lety

      Do yourself a favor and just use the command ''php artisan make:model -a ''. This will create a model, migration, controller and resource with the given .

  • @vipinpatel9572
    @vipinpatel9572 Před 6 lety +1

    i follow all the step but not Create the automatically "master.blade.php" file .How to create the "master.blade .php" file

    • @comedygm7643
      @comedygm7643 Před 6 lety

      Faced the same problem also.
      Do you found the solution?
      Please share
      Thanks

    • @informaticskhan5705
      @informaticskhan5705 Před 6 lety

      same prob ..

    • @haecheonlee6617
      @haecheonlee6617 Před 6 lety

      Not sure if you guys already solved it, but here is a document for it. laravel.com/docs/5.6/blade
      As well, I am not sure how he sets it to route.php

    • @farhanmehsood
      @farhanmehsood Před 5 lety

      Same problem

    • @syedm.hharis3009
      @syedm.hharis3009 Před 5 lety

      @@farhanmehsood you can create master.blade.php manually by write clicking on the view->newfile and create master.blade.php............once you do that just copy and past the codes from the documentations if you feel lazy to type all

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

    hi
    it is giving me this error
    Cannot end a section without first starting one. (View: C:\xampp\htdocs\laravelTutorials\student_crud
    esources\views\Student\create.blade.php)

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

      same

    • @majormfr8646
      @majormfr8646 Před 4 lety

      @@grandtom2516 it solved after sometime check brackets and syntax of include master

  • @trapkick5570
    @trapkick5570 Před 4 lety

    You missed out the save() or did I?
    Didnt find in in Tutorial 2 (jumped backwards to check again) and dont find it in tutorial 3.

  • @CanadaSafari
    @CanadaSafari Před 5 lety

    127.0.0.1:8000/student/create
    Sir it shows blank not found.. Y?

  • @loveamjust
    @loveamjust Před 3 lety

    Target class [StudentController] does not exist. help me out

  • @augustomarcelo
    @augustomarcelo Před 6 lety

    could you do a tutorial showing how to capture photo using webcam?

  • @iamthejustin7420
    @iamthejustin7420 Před 3 lety +2

    YOU STREAM ON TWITCH BRO? YOU STREAM LARAVEL ON TWITCH???

  • @bazkhan7887
    @bazkhan7887 Před 5 lety

    It's redirecting me to student and not working

  • @dangelgeek
    @dangelgeek Před 4 lety

    Para los que tengan error, aquí dejo el código de esta clase, me funciono bien, saludos...
    github.com/DanielGeek/laravel_ejemplos/commit/dae65cc2e6354a1deab48f765d256ba0a3010992

  • @monicajhoesilo8842
    @monicajhoesilo8842 Před 3 lety

    "View [student.create] not found."
    how can i fix this

    • @kamranafridi4702
      @kamranafridi4702 Před 3 lety

      you will add protected $namespace = 'App\Http\Controllers'; this code in routeserviceprovider.php which will be in aap/provider

    • @kamranafridi4702
      @kamranafridi4702 Před 3 lety

      and then you will need to add ->namespace($this->namespace) below in this file which will be boot() fuction

    • @kamranafridi4702
      @kamranafridi4702 Před 3 lety

      and then return view('student.create'); add this code in student controller.php in index function

    • @kamranafridi4702
      @kamranafridi4702 Před 3 lety

      in app/web.php the route should be like this Route::resource('/student/create', 'StudentController');

  • @ridhogakrhoma
    @ridhogakrhoma Před 3 lety

    I try your tutorial and got this message " "

  • @mudassarhussain891
    @mudassarhussain891 Před 5 lety

    Sir Your method is Sooo difficult

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

    such a terrible way to do validation on serverside.
    That's the problem about these tutorials.
    A lot of people begin to learn in the wrong way, then later they get lost and they have no idea what they are doing.
    It was uploaded in 2018, but anyway... I was looking for something and I came across this tutorial and I realised that everything that I learned is different from here,
    First you validate forms in the front-end, then you get your parameters and send request to server side, then server
    side provides response.
    Imagine if your client has to fill out the whole form and press submit to check if there is an error or not?
    If must be validated while they are typing something in the form with JavaScript/Ajax requests.
    ANYWAY, a lot of ways to do it, people will always be learning the wrong way with these tutorials, but it is better than nothing.

    • @hunternova77
      @hunternova77 Před 3 lety

      I am learning Laravel right now, any suggestion of how to do the validation properly? Many thanks in advance

  • @dinukajayasooriya3730
    @dinukajayasooriya3730 Před 3 lety

    My folder not seen resource >viwe> STUDENT FOLDER

  • @alinasir3579
    @alinasir3579 Před 4 lety

    please reply me immediately

  • @Kurapati-it8wl
    @Kurapati-it8wl Před 2 lety

    there many errors while doing this and they are not sorting
    very bad video

  • @samarthsharma3631
    @samarthsharma3631 Před 4 lety

    thats irritating.!