This is a template repository for quickly setting up a Laravel project with Filament admin panel pre-configured.
To use this template:
- Click the "Use this template" button at the top of this repository.
- Choose a name for your new repository and create it.
- Clone your new repository to your local machine.
- PHP 8.2 or higher
- Composer
- Node.js and npm
This template comes pre-configured with the following packages:
barryvdh/laravel-debugbar
: ^3.14barryvdh/laravel-ide-helper
: ^3.1larastan/larastan
: ^2.9laravel/pint
: ^1.18pestphp/pest
: ^2.35pestphp/pest-plugin-faker
: ^2.0pestphp/pest-plugin-laravel
: ^2.4pestphp/pest-plugin-livewire
: ^2.1
These packages provide tools for debugging, IDE support, static analysis, and testing.
-
Navigate to your project directory:
cd your-project-name
-
Install PHP dependencies:
composer install
-
Install and compile frontend dependencies:
npm install npm run build
-
Set up environment file:
cp .env.example .env
-
Generate application key:
php artisan key:generate
-
Link storage:
php artisan storage:link
-
Install Filament:
php artisan filament:install --panels
We recommend using Laragon for easy local development. It provides a user-friendly interface and automatically sets up virtual hosts.
For email testing, we recommend using Mailtrap. Update your .env
file with your Mailtrap credentials.
This template includes a GitHub Actions workflow for continuous integration. The workflow:
- Runs on push and pull requests to the
main
anddocker
branches - Uses a matrix strategy to test across multiple configurations:
- PHP versions: 8.2, 8.3
- Laravel versions: 10.*, 11.*
- Dependency versions: prefer-lowest, prefer-stable
- Sets up a MySQL database for testing
- Runs migrations and seeds the database
- Executes PEST tests
- Performs static analysis with PHPStan
- Checks code style with PHP Code Sniffer
To view or modify the workflow, check the .github/workflows/tests.yaml
file in your repository.
We plan to add Docker support in the future for easier environment setup and consistency across different development machines.
If you'd like to contribute to this template, please fork the repository and submit a pull request with your proposed changes.
This project is open-sourced software licensed under the MIT license.