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

Комментарии • 42

  • @codewithdary
    @codewithdary  2 года назад

    LETS CONNECT THROUGH INSTAGRAM.
    instagram.com/codewithdary

  • @bustahh7592
    @bustahh7592 2 года назад +9

    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 года назад +1

    Thanks for this video. It really saved me from the stress and confusion.

  • @devidwood5482
    @devidwood5482 3 года назад +1

    looking forward to learning more from you Dary

  • @dheluxeTV
    @dheluxeTV Год назад +1

    this what ive been looking for. thank you

  • @wmcmps
    @wmcmps 2 года назад +1

    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.

  • @nurhakimi3
    @nurhakimi3 3 года назад +2

    Awesome video Dary

  • @juanortegaa6916
    @juanortegaa6916 Месяц назад

    What DB are the most recommended to use with Laravel and PHP ?

  • @georgeosborn421
    @georgeosborn421 2 года назад +1

    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?

  • @mariannehartigan
    @mariannehartigan 3 года назад +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 года назад +1

      Yes thank you! You can even kill all your other apache processes!

  • @sonysum1031
    @sonysum1031 2 года назад +1

    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!

  • @tahuratahura1631
    @tahuratahura1631 2 года назад +1

    Thanks Mate

  • @faizurrahmankhan4760
    @faizurrahmankhan4760 2 года назад +1

    thank you

  • @spatel17
    @spatel17 Месяц назад

    How to install and access phpMyAdmin in Laravel 11?

  • @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?

  • @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 Год назад

    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.

  • @DilieMC
    @DilieMC Год назад +1

    Ik had wel ff moeite om te horen dat je Nederlands was :P

    • @codewithdary
      @codewithdary  Год назад

      Haha! Ik doe mijn best, hopelijk lukt het :p

  • @OnlyJavascript
    @OnlyJavascript 3 года назад

    nice

  • @safara_umarov
    @safara_umarov 3 года назад

    👍👍👍👍

  • @nkuraijagary9561
    @nkuraijagary9561 3 года назад +1

    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')"

  • @rajabhishek2936
    @rajabhishek2936 3 года назад

    Awosem

  • @gerrardandeminem
    @gerrardandeminem Год назад +1

    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.