Starter Laravel template with roles and permissions.
Let's get started
-
Clone the repository
git clone https://github.com/miftahfd/laravel-role-permission-template.git
-
Install dependencies
cd role-permission-template composer install npm install npm run dev
-
Copy .env.example to .env
cp .env.example .env
-
Generate key application
php artisan key:generate
-
Configure your database in .env
DB_CONNECTION=mysql DB_HOST=database_host DB_PORT=database_port DB_DATABASE=database_name DB_USERNAME=database_user DB_PASSWORD=database_password
-
Run migrations and initial seeder
php artisan migrate:fresh --seed
-
Run web server
php artisan serve