Skip to content

Installation

Nasir Khan Saikat edited this page Apr 12, 2024 · 8 revisions

Installation Steps

Follow the steps mentioned below to install and run the project.

  1. 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
  1. The default database is sqlite, if you want to change please update the database settings at .env file
  2. To create a link from the storage directory, run the following command from the project root:
php artisan storage:link
  1. If you run the create-project command from Laravel Hard then the site will be available at http://laravel-starter.test. You may create a virtualhost entry to access the application or run php artisan serve from the project root and visit http://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

Docker and Laravel Sail

This project is configured with Laravel Sail (https://laravel.com/docs/sail). You can use all the docker functionalities here.

Clone this wiki locally