klaasnicolaas / laravel-template

🛠️ Laravel (v11.x) template with Filament (v3.x), Spatie Permissions, Pest tests and more...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🛠️ Laravel Template

Project Maintenance License

GitHub Activity GitHub Last Commit Contributors

Forks Stargazers Issues

About

This is a laravel template repository project, which can be used as a basis for future projects. Based on the TALL stack and packed with useful features to get started right away.

Features

Create admin user

To create an admin user for the Filament dashboard, run the following command:

php artisan make:filament-user

Roles and permissions

By default there are 3 types of roles:

  • Admin
  • Moderator
  • User

Setting up development environment

  1. Clone the repository

  2. Open a terminal and navigate to the laravel folder

  3. Copy the .env.example file to .env:

cp .env.example .env
  1. Uncomment and/or change the following lines in the .env file:
APP_NAME=Template

FORWARD_APP_PORT=80
FORWARD_DB_PORT=3306

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=sail
DB_PASSWORD=password
  1. Change the name in docker-compose.yml:
---
name: 'template'
  1. Install the composer dependencies and generate a new application key:
composer install && php artisan key:generate
  1. Start the development server:
./vendor/bin/sail up -d
  1. Run the database migrations and seed the database:
./vendor/bin/sail php artisan migrate --seed

License

Distributed under the MIT License. See LICENSE for more information.

About

🛠️ Laravel (v11.x) template with Filament (v3.x), Spatie Permissions, Pest tests and more...

License:MIT License


Languages

Language:PHP 75.5%Language:Blade 24.1%Language:JavaScript 0.3%