Stop Creating Data Manually
HTML-код
- Опубликовано: 2 окт 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/do...
Factories Docs: laravel.com/do...
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 🤙
Thanks Simon! That’s incredibly helpful to know. Hopefully there will be more of them then in the near future. 😁
-Josh
What theme / font are you using in vscode?
This is the Catppuccin Frappé theme with Dank Mono font. :)
-Josh
@LaravelPHP and what icon theme are you using? Is it also from catppuccin?
It's nice but I didn't understand because I am beginner in laravel.
Keep distance from the mic and sound how naturally humans speak 😑😑😑😑😑😑
Thanks you, I' really appreciate all your videos. Seeding database very cool. Then i wish to see soon how to deal with relationship factories.
Thanks David! We will keep that in mind. So SO much to know when it comes to Factories.
-Josh
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
I'm glad these types of videos resonated with you. We will make sure to make more like them. ☺️
I think something is different with the color correction for the video?? Or is it just me?
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
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 😂
Thank you so much. :)
-Josh
I was asking myself this question yesterday 😅😂.
Really appreciate it ❤
It's something I wish I started using earlier myself! 😂
-Josh
@@LaravelPHPWell, that’s interesting 😂
A short command to run migration (fresh) and seeding data:
php artisan mi:f --seed
Good tip! Thanks! :)
-Josh
It's such a lovely thing.
It's something that is kind of taken for granted but is EXTREMELY useful. 😌
-Josh
@@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 😊
Петр первый пёрнул первым показав пример полку