/Laravel-Boilerplate

A Laravel boilerplate with Jetstream, Livewire and Tailwind CSS for my own projects.

Primary LanguagePHP

Boilerplate

Requirements

  • PHP 7.4
  • MySQL 8.0

Installation

Install the following libraries & PHP extensions:

sudo apt install openssl php-bcmath php-common php-intl php-json php-mbstring php-tokenizer php-xml php-zip unzip

Then, install the project dependencies:

composer install

Configure the application:

cp .env.example .env
vi .env
php artisan key:generate
php artisan migrate --seed
php artisan storage:link
php artisan telescope:publish

Finally, compile the assets:

npm install
npm run dev

Deploy

You can deploy the project by executing dep deploy production.

Configure Cron

* * * * * cd /var/www/html/current && php artisan schedule:run >> /dev/null 2>&1