Laravel 5.8 tutorial #15 start with database

preview_player
Показать описание
In this laravel 5.8 tutorial we learn how to start with database with simple example. Below are the points that are we are cover in this video

Make a controller and a Router this same controller
Make Db configration
Write Query and fetch Data

Find link for form tutorial video:

Checkout and subscribe our new channel for technical news
Рекомендации по теме
Комментарии
Автор

Checkout and subscribe our new channel for technical news

codestepbystep
Автор

For those who are getting error, stop your artisan server by pressing Ctrl+c, then restart it using php artisan serve.

MuhammadSaaddev
Автор

Hey, I am getting strange error while connecting to the database. I had tried a lot to fix it but I am not getting any perfect solution to resolve it.
The Error is:- SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client ( )

Please guide me how to resolve this error...

kuch.bhi.dekho.
Автор

1 [1045] Access denied for user 'root'@'localhost' (using password: YES)")




2 PDO::__construct("mysql:host=localhost;port=3306;dbname=hajj", "root", "root", [])


aimananuar
Автор

SQLSTATE[HY000] [1049] Unknown database 'laravel' (SQL: select * from user)


even i use


DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=user
DB_USERNAME=root
DB_PASSWORD=

pradiptapaul
Автор

SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select * from users)

savingclan