This is the official repository for my Components in Laravel 9 tutorial on YouTube.
• Author: Code With Dary
• Twitter: @codewithdary
• Instagram: @codewithdary
Setup the repository
git clone git@github.com:codewithdary/laravel-blog-template.git
cd laravel-blog-template
composer install
cp .env.example .env
php artisan key:generate
php artisan cache:clear && php artisan config:clear
php artisan serve
Create dummy data
php artisan tinker
Run the following commands (order matters)
User::factory()->times(10)->create();
Post::factory()->times(20)->create();
Tag::factory()->times(4)->create();
Finally, let's add data inside our pivot table through our database seeder.
php artisan db:seed