- Clone the repository:
git Clone https://github.com/akmalfauzi19/blog-news.git
cd blog-news
- Install PHP dependencies:
composer install
- Install JavaScript dependencies:
npm install
npm run dev
- Copy the .env.example file to .env and set your environment variables:
cp .env.example .env
Update the .env file with your database credentials and other necessary configurations.
- Generate the application key:
php artisan key:generate
- Migrate database
php artisan migrate
- Seed the database:
php artisan db:seed --class=PermissionTableSeeder
php artisan db:seed --class=CreateAdminUserSeeder
- Start the development server:
php artisan serve
php artisan cache:clear
php artisan config:clear