-
Notifications
You must be signed in to change notification settings - Fork 426
Installation
Nasir Khan Saikat edited this page Apr 12, 2024
·
8 revisions
Follow the steps mentioned below to install and run the project.
- Open the terminal and run the following command, this will download and install the
Laravel Starter
and run the post-installation commands.
composer create-project nasirkhan/laravel-starter
- The default database is
sqlite
, if you want to change please update the database settings at.env
file - To create a link from the storage directory, run the following command from the project root:
php artisan storage:link
- If you run the
create-project
command fromLaravel Hard
then the site will be available at http://laravel-starter.test. You may create a virtualhost entry to access the application or runphp artisan serve
from 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 a new set of 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.