Databases & Migrations | Laravel For Beginners | Learn Laravel

  Рет қаралды 51,523

Code With Dary

Code With Dary

Күн бұрын

This video will introduce you to databases and migrations in Laravel - Learn one of the most popular PHP frameworks for its advanced features, templating engine, fast commands and security.
📚 New Udemy Course
If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: www.udemy.com/course/masterin...
📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews or a coaching session for Laravel. Please read the description before booking: calendly.com/codewithdary
💌 Newsletter
Sign up for my free weekly email newsletter: www.newsletter.codewithdary.com
🔥 Resources
- PHP Hosting (10% DISCOUNT): www.hostinger.com/codewithdary
- TikTok: / codewithdary
- Instagram: / codewithdary
- Twitter: / codewithdary
- Blog: blog.codewithdary.com/
- Newsletter: newsletter.codewithdary.com/
- Patreon: www.patreon.com/user?u=30307830
- GitHub: github.com/codewithdary
Want to learn more?
- Courses: / @codewithdary
📋 Table of Content
00:00 - Introduction
00:56 - Database credentials
02:54 - MySQL in the CLI
06:50 - Migrations
08:56 - Creating tables
12:58 - Migration commands
#laravel #laravel8 #php #introduction

Пікірлер: 42
@codewithdary
@codewithdary 2 жыл бұрын
LETS CONNECT THROUGH INSTAGRAM. www.Instagram.com/codewithdary
@bustahh7592
@bustahh7592 2 жыл бұрын
Ive built an entire laravel app for a project for school, all using your videos. I can't thank you enough Dary.
@codewithdary
@codewithdary 2 жыл бұрын
Oh that's awesome man, share it with me if you got a link! :)
@kennedyani8319
@kennedyani8319 2 жыл бұрын
Thanks for this video. It really saved me from the stress and confusion.
@codewithdary
@codewithdary 2 жыл бұрын
You're very welcome Kennedy! :)
@devidwood5482
@devidwood5482 3 жыл бұрын
looking forward to learning more from you Dary
@codewithdary
@codewithdary 3 жыл бұрын
Devi! Thank you a lot! :)
@dheluxeTV
@dheluxeTV Жыл бұрын
this what ive been looking for. thank you
@codewithdary
@codewithdary Жыл бұрын
Nice!! :)
@wmcmps
@wmcmps 2 жыл бұрын
Love your tutorials. One note: The DESC command you use at 12:45 is meant to DESCRIBE the table and has nothing to do with desc(ending) or asc(ending) in select queries.
@codewithdary
@codewithdary 2 жыл бұрын
I messed up, whoooops :D
@georgeosborn421
@georgeosborn421 2 жыл бұрын
I am having so much trouble with this section, I keep running the "mysql -u root -p" command and have errors like this constantly "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)" Do I need to host the MySQL database somewhere? But it seems like you don't do any of that in this tutorial you just connect with "mysql -u root -p". So what is going wrong with mine, I am running "php artisan serve" in the background and have been fiddling with the .env + database.php file?
@juanortegaa6916
@juanortegaa6916 2 ай бұрын
What DB are the most recommended to use with Laravel and PHP ?
@sonysum1031
@sonysum1031 2 жыл бұрын
it help me a lots and what extension do you using go to definition class Laravel in vs code? example: you click on bluePrint go to blue print class definition
@codewithdary
@codewithdary 2 жыл бұрын
It is called php i telephense. I’ve also got a video where I setup VS Code for Laravel!
@mariannehartigan
@mariannehartigan 3 жыл бұрын
If you're getting an error running php artisan migrate, you may need to first run php artisan config:cache. I think this is from other databases and projects run on the machine
@codewithdary
@codewithdary 3 жыл бұрын
Yes thank you! You can even kill all your other apache processes!
@nurhakimi3
@nurhakimi3 3 жыл бұрын
Awesome video Dary
@codewithdary
@codewithdary 3 жыл бұрын
Thanks Nur!
@bonmarguilleno1822
@bonmarguilleno1822 3 жыл бұрын
Hello, I am watching over your videos from 1 up to here, and I am having trouble with this one. First is in cmd I can't access mysql -u root -p as per cmd, 'mysql' is not recognized as an internal or external command. And have you deleted the past files you created 'index.blade.php' up to app.scss? Thank you!
@codewithdary
@codewithdary 3 жыл бұрын
Have you installed MySQL from your CLI? I did, I created a new project!
@Kejnjrbdbfhhrbb
@Kejnjrbdbfhhrbb 3 жыл бұрын
Do u use windows or MacBook bro
@bassemchrist74
@bassemchrist74 2 жыл бұрын
mysql -u root -p (( 'mysql' is not recognized as an internal or external command, )) , Ps : my laravel project is installed inside htdocs in xampp folder , why iI can't access mysql in command prompt? thank you.
@tahuratahura1631
@tahuratahura1631 2 жыл бұрын
Thanks Mate
@codewithdary
@codewithdary 2 жыл бұрын
Thank you Tahura!
@spatel17
@spatel17 2 ай бұрын
How to install and access phpMyAdmin in Laravel 11?
@faizurrahmankhan4760
@faizurrahmankhan4760 2 жыл бұрын
thank you
@codewithdary
@codewithdary 2 жыл бұрын
You're welcome Faizur!
@DilieMC
@DilieMC Жыл бұрын
Ik had wel ff moeite om te horen dat je Nederlands was :P
@codewithdary
@codewithdary Жыл бұрын
Haha! Ik doe mijn best, hopelijk lukt het :p
@carlfranz6805
@carlfranz6805 2 жыл бұрын
I'm racking my brain trying to remember where I have learned this (or something very similar) before. It would have to be at least 10 years ago as I've been out of IT professionally about that long. Hogan... PeopleSoft... maybe? Anyone else getting Déjà vu from this?
@nkuraijagary9561
@nkuraijagary9561 3 жыл бұрын
Hey Dary I keep getting this error when I run php artisan migrate "could not find driver (SQL: select * from information_schema.tables where table_schema = project and table_name = migrations and table_type = 'BASE TABLE')"
@younessradid5796
@younessradid5796 2 жыл бұрын
u found the answer ???
@OnlyJavascript
@OnlyJavascript 3 жыл бұрын
nice
@codewithdary
@codewithdary 3 жыл бұрын
Thanks!
@safara_umarov
@safara_umarov 3 жыл бұрын
👍👍👍👍
@codewithdary
@codewithdary 3 жыл бұрын
:D
@princeobed3143
@princeobed3143 3 жыл бұрын
Where is the link
@codewithdary
@codewithdary 3 жыл бұрын
@@princeobed3143 Which one?
@rajabhishek2936
@rajabhishek2936 3 жыл бұрын
Awosem
@gerrardandeminem
@gerrardandeminem Жыл бұрын
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
@codewithdary
@codewithdary Жыл бұрын
You should Google that and look on Stackoverflow. There are tons of reasons why that happened and I can't provide you all of them.
Model Factories | Laravel For Beginners | Learn Laravel
8:03
Code With Dary
Рет қаралды 25 М.
Introduction To Eloquent | Laravel For Beginners | Learn Laravel
45:20
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 15 МЛН
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 35 МЛН
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 346 М.
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,5 МЛН
Raw SQL, SQL Query Builder, or ORM?
16:19
ArjanCodes
Рет қаралды 97 М.
I built 10 web apps... with 10 different languages
14:23
Fireship
Рет қаралды 1,5 МЛН
Laravel CRUD in 50 minutes for Beginners  from Scratch
49:58
Devtamin
Рет қаралды 195 М.
PHP is the future
34:27
Aaron Francis
Рет қаралды 171 М.
Why You NEED To Learn FastAPI | Hands On Project
21:15
Travis Media
Рет қаралды 156 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 15 МЛН