Laravel Tutorial for Beginners – Database Connection & Create Table




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 …

Original source


12 responses to “Laravel Tutorial for Beginners – Database Connection & Create Table”

  1. 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:

    IlluminateDatabaseQueryException : 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..

  2. 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 ๐Ÿ™‚

Leave a Reply