Stop Creating Data Manually

Sdílet
Vložit
  • čas přidán 30. 06. 2024
  • When building an application, you'll have to start working with actual data at some point. So do you just manually create that data by hand using the UI like your users would?
    Or is there an easier way to generate data so that you can build features, test your product, and see what your users would see without the extra hassle.
    Let's take a quick look at what seeding a database actually means and how factories factor (😉) into it all within Laravel.
    Database Seeding Docs: laravel.com/docs/11.x/seeding
    Factories Docs: laravel.com/docs/11.x/eloquen...
  • Věda a technologie

Komentáře • 20

  • @simonswiss
    @simonswiss Před 5 dny +7

    I am a BIG FAN of these 2-minute short videos. Those can be consumed at any time, and unlock a new skill almost instantly 🤙

    • @LaravelPHP
      @LaravelPHP  Před 5 dny +1

      Thanks Simon! That’s incredibly helpful to know. Hopefully there will be more of them then in the near future. 😁
      -Josh

  • @ahmad_fbq
    @ahmad_fbq Před 5 dny +1

    I was asking myself this question yesterday 😅😂.
    Really appreciate it ❤

    • @LaravelPHP
      @LaravelPHP  Před 5 dny +2

      It's something I wish I started using earlier myself! 😂
      -Josh

    • @ahmad_fbq
      @ahmad_fbq Před 5 dny

      @@LaravelPHPWell, that’s interesting 😂

  • @davidhida6821
    @davidhida6821 Před 5 dny +1

    Thanks you, I' really appreciate all your videos. Seeding database very cool. Then i wish to see soon how to deal with relationship factories.

    • @LaravelPHP
      @LaravelPHP  Před 5 dny

      Thanks David! We will keep that in mind. So SO much to know when it comes to Factories.
      -Josh

  • @user-ek8hs5bg2y
    @user-ek8hs5bg2y Před 5 dny

    I really appreciate and love your content. At least no javascript drama, straight to the point and I truly can see you having fun using artisan sexy command line 😂

  • @gbbigardi
    @gbbigardi Před 5 dny +2

    What theme / font are you using in vscode?

    • @LaravelPHP
      @LaravelPHP  Před 5 dny +2

      This is the Catppuccin Frappé theme with Dank Mono font. :)
      -Josh

    • @osamuel578
      @osamuel578 Před 5 dny

      ​@LaravelPHP and what icon theme are you using? Is it also from catppuccin?

  • @Stoney_Eagle
    @Stoney_Eagle Před 5 dny

    It's such a lovely thing.

    • @LaravelPHP
      @LaravelPHP  Před 5 dny +1

      It's something that is kind of taken for granted but is EXTREMELY useful. 😌
      -Josh

    • @Stoney_Eagle
      @Stoney_Eagle Před 5 dny

      @@LaravelPHP I have to make this myself for C#, I am NOT taking this for granted haha. There is soo much now that I need to make myself that I used to get for free.
      Every time I can just use it with PHP I am thankful 😊

  • @binuavin
    @binuavin Před 4 dny

    I think something is different with the color correction for the video?? Or is it just me?

    • @LaravelPHP
      @LaravelPHP  Před 4 dny +1

      Hmm. It might just be because I chose a much "brighter" color for my second light, so it might appear brighter than normal. I try to switch the colors up every video. ☺️
      -Josh

  • @yasser.elgammal
    @yasser.elgammal Před 5 dny

    A short command to run migration (fresh) and seeding data:
    php artisan mi:f --seed