Laravel Tutorial for Beginners - Database Connection & Create Table

Sdílet
Vložit
  • čas přidán 4. 01. 2018
  • How to connect Mysql Database with Laravel. How to Configure database connection in Laravel 5. How to create Mysql table from Laravel application. How to make Database connection in Laravel and create table and migrate table from Laravel application to Mysql database.
    Check our new PHP Project with Complete Source Code
    PHP Mysql Chat Application with WebSocket - • Chat Application in PH...
    PHP Project on Student Result Management System - • Video
    Restaurant Management System Created using PHP - • Video
    Visitor Management System in PHP Mysql using Ajax jQuery - • Video
    For Source Code - www.webslesson.info/2018/01/in...

Komentáře • 88

  • @westfield90
    @westfield90 Před 4 lety +2

    Thank you. I don’t think I’ve learnt this as easily as you have shown. Too many tutorials on CZcams are confusing

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

    finally someone explain so calmly and very details !!

  • @misstress1928
    @misstress1928 Před 5 lety +3

    You the best laravel tutor on CZcams, thanks!

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

    This is going to be fun while learning Laravel from you guys Hats Off to you guys you are making so much effort and clear our all questions with great explanation thank you so much !!!

  • @tatiano3390
    @tatiano3390 Před 5 lety +1

    Thank you #sir. Really solve my doubt since I was stack for days.

  • @mdaftabalam788
    @mdaftabalam788 Před 3 lety

    Nice, This video is very helpful for biggeners

  • @rodbongosia
    @rodbongosia Před 6 lety

    Nice this is what i've been waiting in you..looking forward

  • @charvimehta_
    @charvimehta_ Před 6 lety

    a really helpful tutorial. thank you so much

  • @codinghybrid1493
    @codinghybrid1493 Před 5 lety

    Thanks very much.. good job...

  • @shravyasherigar483
    @shravyasherigar483 Před 5 lety +5

    thanks a lot weblesson..!! this tutorial is easily understandable and clearly explaied too .good job.. :)

  • @nazmusshakib6125
    @nazmusshakib6125 Před 4 lety

    Thanks man you helps me a lot

  • @shittumuhammed5278
    @shittumuhammed5278 Před 4 lety

    nice tutorial, easy to work around with

  • @ribibabu9927
    @ribibabu9927 Před 5 lety

    thanku so much sir..this help me a lot..

  • @paweupawel8890
    @paweupawel8890 Před 4 lety

    worked it ! i love you

  • @divyagurumoorthy3354
    @divyagurumoorthy3354 Před 4 lety

    I have already updated the DB connection, DB username and p/w in the .env file. Is it really necessary to update these details in the database.php file as well?

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

    this is great. since my laravel version is different and i use mamp, i have to change my port from 3305 to 8889 for the database to be connected

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

    Can anyone help me? I have this error: *SQLSTATE[HY000] [2000] mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication*, this happen when I use php artisan migrate in my data base.

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

    beautiful, we wanna see more laravel videos, please crud laravel and ajax

  • @smilelike855
    @smilelike855 Před 5 lety

    Thanks for this tutorial

  • @DardanBakiu
    @DardanBakiu Před 3 lety

    Great Video!

  • @souvikdhar9333
    @souvikdhar9333 Před 6 lety +12

    Sir, I am a regular follower of your channel. Please share more tutorials on laravel. Waiting for more videos. :)

    • @medoune89
      @medoune89 Před 6 lety

      Yes Yes Yes i'm with souvik dhar ... we wait more tutorials on laravel

  • @vino8711
    @vino8711 Před 4 lety

    Good mornning, my question is can make:auth be used after the setting up of mysql

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

    THIS GUY IS A GOD, HE IS BETTER THAN MY LECTURER. THANK YOU SO MUCH FOR HELPING ME TO GET MY DEGREE!

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

    WORKS LOVE YOU MATE

  • @abeprangishvili
    @abeprangishvili Před 5 lety

    Fantastic !!!!

  • @dukudavidjoseph6676
    @dukudavidjoseph6676 Před 4 lety

    I understand that laravel comes with default users table for login, but if I want to change to new tables say Loginusers what should I do in order to archive that. because I have tried to change provider in database.php in config folder but it is giving me errors

  • @xenonyoutub
    @xenonyoutub Před 4 lety

    Thanks a lot sir

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

    subscribed and commented for more

  • @gagandeepkaur2752
    @gagandeepkaur2752 Před 3 lety

    Is it possible to migrate already existing tables from phpmyadmin to laravel project? For example, I have created a table in phpmyadmin and now want to access it in my laravel project to perform CRUD operations on it. So, how can I generate migration files for already existing tables?

  • @user-gj7oe8ys6h
    @user-gj7oe8ys6h Před 5 lety

    thank you ,but is this necessery to delete authentification tables ?

  • @status_spot_tamil8891
    @status_spot_tamil8891 Před 5 lety

    Nice Tutorial

  • @eaglenegocetech
    @eaglenegocetech Před 3 lety

    Tank You WebLesson

  • @tech_boss9950
    @tech_boss9950 Před rokem

    Thank u 😊😊😊

  • @LINUZ1997
    @LINUZ1997 Před 5 lety

    Why would you delete 2 authentification tables from migrations folder??

  • @awaissarwar6665
    @awaissarwar6665 Před 2 lety

    thanks ever so sir

  • @tonychimzere2345
    @tonychimzere2345 Před 4 lety

    this was good

  • @1a-zaynabmohammed125
    @1a-zaynabmohammed125 Před 3 lety

    sir ,php artisan migrate is not working for me ,illegal/database/ queryexception , couldn't find the driver error is coming , since i coded same as you showed in this tutorial , can you please help me to remove the error
    Thnks and regards

  • @mcu1102at
    @mcu1102at Před 4 lety

    Do you have any search coding video demo on this channel ?

  • @reebababu3451
    @reebababu3451 Před 5 lety

    nice tutorial

  • @yassiral3661
    @yassiral3661 Před 4 lety

    thanks

  • @stephenchan8578
    @stephenchan8578 Před 5 lety

    Got an error when running "php artisan migrate" --- "storage/logs/laravel-2019-07-12.log" could not be opened: failed to open stream: Permission denied". How to fix it?

  • @saddamsagar2023
    @saddamsagar2023 Před 4 lety

    I found your tutorial is very helpful for developer from beginner. I enjoying you topics. in this topic you connect with mySql database its fine and interesting. but when i go to connect couple of db in a single application how can i do that such as i want to use mySql as my default db and second one is Sql server for particulate performance. please let me know it will helpful for me.

  • @melvincatindig6866
    @melvincatindig6866 Před 3 lety

    im having a hard time in this error. PLEASE HELP !!!
    "SQLSTATE[HY000] [1049] Unknown database 'laravel-testing' (SQL: select * from information_schema.tables where table
    _schema = laravel-testing and table_name = migrations)"

  • @JersonMVproductions
    @JersonMVproductions Před 6 lety

    Hello Sir Programmer. Is it easy to code seen and not seen functions like facebook? How can we do this? :) just like when you click the button, it represents to the admin that you have seen and read the message. Thanks. Look forward for your reply. God bless :)

  • @rabnawazjansher7661
    @rabnawazjansher7661 Před 5 lety +5

    when i connect xammp mysql database i get an error
    SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = testing-laravel and table_name = migrations and table_type = 'BASE TABLE')

    • @jensenraylight8011
      @jensenraylight8011 Před 4 lety +2

      yeah i get this message too, and don't know how to solve it,
      the documentation doesn't explain about it clearly too
      so are you already solve the issue?, can i ask, how you solve it?

  • @oumaymaboubaker6547
    @oumaymaboubaker6547 Před 3 lety

    thanks for this tutorial but could u show us how can we join newly created tables with an existing DB, the goal is to add a new module

  • @fatm2013
    @fatm2013 Před 2 lety

    Thank you a lot for your helpful videos.
    I have a question about the timestamps() -> can we remove it or note?

  • @soulcandymusic8236
    @soulcandymusic8236 Před 4 lety

    I love these tutorials, but I'm getting insanely stucked and frustrated at the migration part. I'm using MAMP, and not I've tried for countless hours to make it work, but I simply can't. Even tried the advice from longer down the comment-section. Does anyone know what to do, when the connection is refused?

  • @sebg100
    @sebg100 Před 4 lety

    Very good explain, but for configure in hosting server, what is the exact procedure ?...

  • @ksk1290
    @ksk1290 Před 4 lety

    what is used to create the database at 0:48 ?

  • @yusufsheikhahmed4810
    @yusufsheikhahmed4810 Před 5 lety

    There are some subscribers including me who face PDOException::("could not find driver") Is there anyone who help us that error please?

  • @kayleighminnie2062
    @kayleighminnie2062 Před 6 lety

    What if you already have an existing table?

  • @umangchudasma8307
    @umangchudasma8307 Před rokem

    is this the same guy that comes in so many reels

  • @habibjalal9939
    @habibjalal9939 Před 5 lety

    i am facing problem when enterin the command (php artisan migrate) they are mentioned that homestead user is denied

  • @stanningeveryone7811
    @stanningeveryone7811 Před 3 lety

    hm it doesn't come out on database. I mean, the first name, last name tables?

  • @nomention1068
    @nomention1068 Před 6 lety

    Please make a laravel ACL series

  • @ahsankalim8594
    @ahsankalim8594 Před 6 lety

    Sir can you discuss about chart in laravel? If you don't have a time to make a video about chart.. So plzz send me any resources about to chart! I shall be very thankful to you

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

    Nice tutorial but the because of the text to speech you used some things that were said was unclear

  • @rajnitetwar8083
    @rajnitetwar8083 Před 5 lety

    How to alter table in laravel?

  • @killuazoldyck7027
    @killuazoldyck7027 Před 3 lety

    The one speaking. Is it a robot? From text to speech application?

  • @stanningeveryone7811
    @stanningeveryone7811 Před 3 lety

    hello sir, why they did not imigrate "first_name" and "last_name" but the "id" is updated in database? it stated "nothing to migrate" ಥ‿ಥ

  • @samarjberi5390
    @samarjberi5390 Před 5 lety

    can you make videos about projects in Laravel please!

  • @thomasgodding7401
    @thomasgodding7401 Před 5 lety

    such great tutorials! but only one question that is still waddling in my head: who is the voice actor of the text to speech?

  • @muhtasimkhandaker2204
    @muhtasimkhandaker2204 Před 4 lety

    big boi you saved my ass big time

  • @harrylinux
    @harrylinux Před 6 lety

    Hello Webslesson.. good tutorial but I do make, I've made step by step your advices and I don't achive to conect my laravel framework to XAMPP.. I don't have idea what's going on.. I try to copy the error that git hub notices me:
    Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (SQL: select * from information_schema.tables where table_schema = styde_curso and table_name = migrations)
    at /home/vagrant/code/Prueba/vendor/laravel/framework/src/Illuminate/Database/Connection.php: 664
    660| // If an exception occurs when attempting to run a query, we'll format the error
    661| // message to include the bindings with SQL, which will make this exception a
    662| // lot more helpful to the developer instead of just the database's errors.
    663| catch (Exception $e) {
    > 664| throw new QueryException(
    665| $query, $this->prepareBindings($bindings), $e
    666| );
    667| }
    668|
    Exception trace:
    1 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)")
    /home/vagrant/code/Prueba/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php : 68
    2 PDO::__construct("mysql:host=localhost;port=3306;dbname=styde_curso", "root", "", [])
    /home/vagrant/code/Prueba/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php : 68
    I'll wait your help or whomever can help me..
    Thanx..

    • @yusufsheikhahmed4810
      @yusufsheikhahmed4810 Před 5 lety

      And so am I. Have you gotten any solution that exception yet?

    • @udonnamadu8769
      @udonnamadu8769 Před 4 lety

      Hello Weblesson. PLease i can't load data to myphpAdmin database with laravel after watching this video and followed the instruction. the error is -SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: insert into `students` (`first_name`, `last_name`, `updated_at`, `created_at`) values (ada, Smith, 2019-09-09 22:32:01, 2019-09-09 22:32:01)). Please help.

    • @jensenraylight8011
      @jensenraylight8011 Před 4 lety

      yeah, i get this message too,
      but why everyone act like they do it easily without any issue?

  • @expectedreaction409
    @expectedreaction409 Před 2 lety

  • @jaysonlauza6552
    @jaysonlauza6552 Před 4 lety

    I-ha-te-rob-ot-narr-a-ti-on...

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

    U should use ya own voice

  • @justinherrera6790
    @justinherrera6790 Před 4 lety

    use your own voice please

  • @SergioArroyoSailing
    @SergioArroyoSailing Před 4 lety

    His pronunciation of La-RA-cel is painful

  • @Morning.star114
    @Morning.star114 Před rokem +1

    Great

  • @soheylrahgozar6281
    @soheylrahgozar6281 Před 4 lety

    nice tutorial

  • @iamthejustin7420
    @iamthejustin7420 Před 3 lety

    subscribed and commented for more