Databases & Migrations | Laravel For Beginners | Learn Laravel
HTML-код
- Опубликовано: 2 июл 2024
- 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
LETS CONNECT THROUGH INSTAGRAM.
instagram.com/codewithdary
Ive built an entire laravel app for a project for school, all using your videos. I can't thank you enough Dary.
Oh that's awesome man, share it with me if you got a link! :)
Thanks for this video. It really saved me from the stress and confusion.
You're very welcome Kennedy! :)
looking forward to learning more from you Dary
Devi! Thank you a lot! :)
this what ive been looking for. thank you
Nice!! :)
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.
I messed up, whoooops :D
Awesome video Dary
Thanks Nur!
What DB are the most recommended to use with Laravel and PHP ?
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?
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
Yes thank you! You can even kill all your other apache processes!
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
It is called php i telephense. I’ve also got a video where I setup VS Code for Laravel!
Thanks Mate
Thank you Tahura!
thank you
You're welcome Faizur!
How to install and access phpMyAdmin in Laravel 11?
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?
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!
Have you installed MySQL from your CLI? I did, I created a new project!
Do u use windows or MacBook bro
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.
Ik had wel ff moeite om te horen dat je Nederlands was :P
Haha! Ik doe mijn best, hopelijk lukt het :p
nice
Thanks!
👍👍👍👍
:D
Where is the link
@@princeobed3143 Which one?
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')"
u found the answer ???
Awosem
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
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.