This project will create your laravel project based on Laravel Sail. This project will also install your CMS admin panel based on OpenAdmin.
-
Clone the repository to your local machine:
git clone git@github.com:BRIGHTLAB/laravel-template.git
-
Navigate to the project directory:
cd path/laravel-template
-
Install dependencies:
composer install
-
Add .env file and change the following ports:
APP_PORT, FORWARD_DB_PORT, VITE_PORT
-
Install Laravel Sail:
php artisan sail:install
-
Launch Laravel Sail (Need to have Docker installed):
./vendor/bin/sail up
-
Initialize OpenAdmin:
php artisan vendor:publish --provider="OpenAdmin\Admin\AdminServiceProvider"
-
Install OpenAdmin / This will install the database (mysql, etc.):
DELETE /app/Admin folder alias sail='sh $([ -f sail ] && echo sail || echo vendor/bin/sail)' sail artisan admin:install
-
Navigate to localhost/admin:
username: admin password: admin
-
Install OpenAdmin Scaffolding helper:
sail artisan admin:import helpers
-
Clone the repository to your local machine:
git clone git@github.com:BRIGHTLAB/laravel-template.git
-
Navigate to the project directory:
cd path/laravel-template
-
Install dependencies:
composer install
-
Add .env file and replace the following:
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=db_name DB_USERNAME=root DB_PASSWORD=
-
Initialize OpenAdmin:
php artisan vendor:publish --provider="OpenAdmin\Admin\AdminServiceProvider"
-
At last run following command to finish install:
php artisan admin:install
-
Install OpenAdmin Scaffolding helper:
php artisan admin:import helpers
-
Navigate to localhost/admin:
username: admin password: admin