Server-side Setup

Requirements

  1. Composer: Luma Laravel utilizes Composer to manage its server-side dependencies. So, before using Luma Laravel, make sure you have Composer installed on your machine.
  2. Server Requirements: Luma Laravel has a few system requirements. See https://laravel.com/docs/8.x#server-requirements

Installation

Unpack the main .zip file downloaded from ThemeForest, then from your terminal, change to the project directory and run:

composer install

Local development server

Using the built-in development server, you can access the site in your browser at http://localhost:8000:

php artisan serve

Optionally, setup Laravel Valet if you're on a Mac. You can replace luma-laravel with your project folder name:

valet link luma-laravel

After running the link command, you can access the site in your browser at http://luma-laravel.test

Depending on your setup, make sure to update the .env file:

APP_URL=http://luma-laravel.test SANCTUM_STATEFUL_DOMAINS=luma-laravel.test # APP_URL=http://localhost:8000 # SANCTUM_STATEFUL_DOMAINS=localhost:8000

Authentication

Create a database file:

touch database/database.sqlite

Run the database migrations:

php artisan migrate

Seed demo credentials test@luma.test with password 12345678:

php artisan db:seed

After you have completed the Client-side Setup and successfully built the client for the first time, you should be able to authenticate at http://luma-laravel.test/login