-
Notifications
You must be signed in to change notification settings - Fork 456
Installation
Nasir Khan Saikat edited this page Nov 24, 2023
·
8 revisions
Follow the steps mentioned below to install and run the project.
- Clone or download the repository
- Go to the project directory and run
composer install - Create
.envfile by copying the.env.example. You may use the command to do thatcp .env.example .env - Update the database name and credentials in
.envfile - Run the command to generate application key
php artisan key:generate - Run the command
php artisan migrate --seed - Link storage directory:
php artisan storage:link - You may create a virtualhost entry to access the application or run
php artisan servefrom the project root and visithttp://127.0.0.1:8000
When the installation has been completed you may access the backend with the following credentials.
User: super@admin.com
Pass: secret
For additional demo data you may use the following command. By using this you can truncate the posts, categories, tags and comments table and insert new demo data. --fresh option will truncate the tables, without this command new set to data will be inserted only.
php artisan starter:insert-demo-data --fresh
After creating the new permissions use the following commands to update cashed permissions.
php artisan cache:forget spatie.permission.cache
This project is configured with Laravel Sail (https://laravel.com/docs/sail). You can use all the docker functionalities here.