/laravel-blog-template

GitHub repository for my Laravel blog template (if you are tired of designing a new page every single time)

Primary LanguagePHP

Laravel Blog Template [STATIC]

This is the official repository for my upcoming YouTube tutorials.
• Author: Code With Dary
• Twitter: @codewithdary
• Instagram: @codewithdary

Usage

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