This is the Laralite skeleton project, with the basic template for getting started with a Laralite project.
- PHP 7.3+
- Composer
- NPM
- Laravel 7
- Laravel Passport for oAuth
- Linux (Ubuntu)
Asset compilation is handled by Laravel mix, and configured in the ./webpack.mix.js
file, documentation can be found here.
- Setup Valet environment locally
- Setup database
- Copy
.env.example
and update values to relevant values - Run commands below...
// Install PHP dependencies
composer install -a
// Install JavaScript dependencies
npm install
// Compile assets
npm run dev
// Compile Laralite assets
cd Modules/Laralite/
npm install
npm run dev
// Run database migrations
artisan migrate
// Run passport install
artisan passport:install
In addition, for initial deployment the keys for authentication need to be registered, this is done with the following;
artisan passport:keys
artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
artisan migrate