Laravel Package Tutorial

Setup instructions

First, make sure you have git and node installed.

Next, you'll need to download the repo if you haven't already:

Change directory to the root folder of the project and install dependencies:

 cd laravel-livewire-demo

Composer

Update composer dependencies

composer install

Config

Create environment settings

 cp .env.example.env
 vi .env
 php artisan key:generate

Database

Migrate database

 php artisan migrate

Laravel mix

Assets are managed via laravel mix. To compile js && css assets, run

npm install && npm run dev

To keep a laravel mix session running while working, run

npm run watch

Final steps

Run development server.

php artisan serve