How to connect to MySQL database with Laravel project

  Рет қаралды 67,475

TechWebDocs

TechWebDocs

Күн бұрын

This is a complete tutorial, here, You will get learn How to connect to MySQL database with Laravel project.
Thank You For Visiting My Channel.
***** Subscribe & Support *****
#Laravel #MySQL #DB-Connection

Пікірлер: 22
@nallawilljr.4873
@nallawilljr.4873 Жыл бұрын
Hidden code fix on line 13, timestamp [03:00]: echo "Successfully connected to DB and DB name is " . DB::connection()->getDatabaseName();
@joyzkieeeeeeeeeee7492
@joyzkieeeeeeeeeee7492 10 ай бұрын
thank youuu
@Rijobin
@Rijobin 9 ай бұрын
Thank you so much!
@mervey45
@mervey45 7 ай бұрын
thank you soooooooo much
@Zleberc
@Zleberc Жыл бұрын
Do not recommend, the code is incomplete and not fully shown in the tutorial.
@musxsang
@musxsang Жыл бұрын
agreed
@gregjerry4110
@gregjerry4110 7 ай бұрын
Thanks man was harving a hard time connecting mysql because the tutorial I was following was used sqlite
@techwebdocs
@techwebdocs 7 ай бұрын
Glad it helped!
@tarciocavaleiro9095
@tarciocavaleiro9095 5 ай бұрын
I'm having an "Undefined type 'DB' " error
@KwastStudio
@KwastStudio Ай бұрын
this should fix it, and if you get SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydb.sessions' doesn't exist (Connection: mysql, SQL: select * from `sessions` where `id` = text tings limit 1) do php artisan migrate
@sadge2836
@sadge2836 Жыл бұрын
use Illuminate\Support\Facades\DB; this line needs to be added before the If condition
@Ankita_Informs
@Ankita_Informs Жыл бұрын
Having error of " could not find driver"
@selverstarmoney8817
@selverstarmoney8817 Жыл бұрын
same things
@learnlab1229
@learnlab1229 3 ай бұрын
kya is way sy migrations me table wali files create ho jay gee?
@ubahobaah9706
@ubahobaah9706 Жыл бұрын
could not find driver error
@benjamimzeca5264
@benjamimzeca5264 Ай бұрын
Thanks a lot, this video helped me to fix some issue that i took more then 5hours
@techwebdocs
@techwebdocs Ай бұрын
You're welcome!
@md.hasiburrahman9583
@md.hasiburrahman9583 Жыл бұрын
thanks brother love
@techwebdocs
@techwebdocs Жыл бұрын
Always welcome
@MethodsTech
@MethodsTech Жыл бұрын
Thanks
@techwebdocs
@techwebdocs Жыл бұрын
Welcome
Databases & Migrations | Laravel For Beginners | Learn Laravel
15:09
Code With Dary
Рет қаралды 53 М.
PHP how to connect to MySQL database
8:50
Bro Code
Рет қаралды 23 М.
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 100 МЛН
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 90 МЛН
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 9 МЛН
Laravel CRUD in 50 minutes for Beginners  from Scratch
49:58
Devtamin
Рет қаралды 215 М.
Database Connections in Laravel - Beyond the Basics
9:29
Mohamed Said
Рет қаралды 13 М.
Laravel 11 Tutorial for Beginners - Laravel Crash Course (2024)
1:22:20
The Codeholic
Рет қаралды 181 М.
Connecting to database | Laravel 10 Tutorial :  #8
10:55
Yelo Code
Рет қаралды 29 М.
Installing MySQL and Creating Databases | MySQL for Beginners
12:04
Alex The Analyst
Рет қаралды 497 М.
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,5 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 100 МЛН