hotash / filastkit
A modern Filament Laravel starter kit with best practices and developer tools.
Fund package maintenance!
HotashTech
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Blade
Type:project
pkg:composer/hotash/filastkit
Requires
- php: ^8.4
- filament/filament: ^4.4
- laravel/framework: ^12.44
- laravel/tinker: ^2.10.2
- nunomaduro/essentials: ^1.0.1
Requires (Dev)
- barryvdh/laravel-debugbar: ^3.16.3
- driftingly/rector-laravel: ^2.1.9
- fakerphp/faker: ^1.24.1
- larastan/larastan: ^3.8.1
- laravel/boost: ^1.8.7
- laravel/pail: ^1.2.4
- laravel/pint: ^1.26
- laravel/sail: ^1.51
- mockery/mockery: ^1.6.12
- nunomaduro/collision: ^8.8.3
- pestphp/pest: ^4.3
- pestphp/pest-plugin-browser: ^4.1.1
- pestphp/pest-plugin-faker: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- pestphp/pest-plugin-livewire: ^4.0.1
- pestphp/pest-plugin-type-coverage: ^4.0.3
This package is not auto-updated.
Last update: 2026-01-01 07:16:35 UTC
README
A modern Laravel 12+ Filament starter kit built with the TALL stack (Tailwind CSS, Alpine.js, Laravel, Livewire) and best practices for rapid application development.
๐ Features
- Laravel 12+ - Latest Laravel framework with modern PHP 8.4+ features
- Filament - Admin panel scaffolding (pre-installed)
- TALL Stack - Tailwind CSS v4, Alpine.js, Laravel, Livewire
- Modern Architecture - Laravel 12 streamlined structure with bootstrap/app.php configuration
- Testing Ready - Pest testing framework with comprehensive test setup
- Code Quality - Laravel Pint for code formatting, PHPStan for static analysis
- Development Tools - Vite for asset compilation, comprehensive development workflow
- CI/CD Ready - GitHub Actions with unified workflows and matrix strategies
๐ ๏ธ Tech Stack
- Backend: Laravel 12+, PHP 8.4+
- Admin Panel: Filament
- Frontend: Tailwind CSS v4, Alpine.js, Livewire
- Testing: Pest PHP
- Code Quality: Laravel Pint, PHPStan
- Build Tool: Vite
- Database: MySQL/PostgreSQL/SQLite ready
๐ Requirements
- PHP 8.4 or higher
- Composer
- Node.js & NPM
- Database (MySQL, PostgreSQL, or SQLite)
๐ Quick Start
1. Clone the repository
git clone https://github.com/HotashTech/FilastKit.git
cd FilastKit
2. Install PHP dependencies
composer install
3. Install Node.js dependencies
npm install
4. Environment setup
cp .env.example .env php artisan key:generate
5. Configure your database in .env
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=your_database DB_USERNAME=your_username DB_PASSWORD=your_password
6. Setup database and seed data
composer setup
7. Build assets
npm run build
8. Start development server
php artisan serve
๐จ Development Workflow
Available Composer Scripts
# Setup database (migrate fresh + seed) composer setup # Testing composer test:fix # Run tests with fixes and improvements composer test:all # Run all tests (linting, analysis, coverage, unit, browser) composer test:quick # Quick test run composer test:unit # Run only unit tests composer test:browser # Run browser tests # Code quality composer lint:fix # Fix code formatting composer lint:test # Check code formatting composer analyse # Static analysis (2GB memory limit) composer analyse:full # Static analysis (unlimited memory) composer analyse:test # Static analysis with ANSI output # Development composer dev # Start all services (server, queue, logs, vite) composer queue # Start queue worker composer schedule # Start scheduler
๐ฆ Asset Compilation
# Development with hot reload npm run dev # Production build npm run build # Watch for changes npm run watch
๐ Code Quality
# Format code and fix linting issues composer lint:fix # Check code quality without fixing composer lint:test # Run static analysis composer analyse:test # Run tests with fixes composer test:fix
๐๏ธ Project Structure
FilastKit/
โโโ app/
โ โโโ Http/Controllers/ # Application controllers
โ โโโ Filament/ # Filament resources, pages, widgets, panels
โ โโโ Models/ # Eloquent models
โ โโโ Services/ # Business logic services
โ โโโ Providers/ # Service providers
โโโ bootstrap/
โ โโโ app.php # Application configuration (Laravel 12+)
โ โโโ providers.php # Service providers
โโโ config/ # Configuration files
โโโ database/
โ โโโ factories/ # Model factories
โ โโโ migrations/ # Database migrations
โ โโโ seeders/ # Database seeders
โโโ resources/
โ โโโ css/ # CSS files
โ โโโ js/ # JavaScript files
โ โโโ views/ # Blade templates
โโโ routes/
โ โโโ web.php # Web routes
โ โโโ console.php # Console commands
โโโ tests/ # Pest tests
๐งช Testing
This starter kit uses Pest for testing. Tests are located in the tests/ directory:
# Run all tests with fixes and improvements composer test:fix # Run all tests (linting, analysis, coverage, unit, browser) composer test:all # Run specific test file php artisan test tests/Feature/ExampleTest.php # Run tests with filter php artisan test --filter=testName # Quick test run (without fixes) composer test:quick # Run only unit tests composer test:unit # Run browser tests composer test:browser
๐ Key Laravel 12+ Features
- Streamlined Structure: No more
app/Console/Kernel.phporRouteServiceProvider - Bootstrap Configuration: Configure routing, middleware, and exceptions in
bootstrap/app.php - Auto-registering Commands: Commands in
app/Console/Commands/are automatically available - Modern PHP Features: Constructor property promotion, typed properties, and more
๐ฏ Best Practices
- Use Form Request classes for validation
- Keep controllers thin with business logic in services
- Use Eloquent relationships over raw queries
- Implement proper error handling and logging
- Follow PSR-12 coding standards
- Write comprehensive tests for all features
๐ง Configuration
Laravel Pint
Code formatting is configured in pint.json and follows PSR-12 standards.
PHPStan
Static analysis is configured in phpstan.neon for code quality assurance.
Vite
Frontend build tool configuration in vite.config.js for modern asset compilation.
GitHub Actions
CI/CD workflows are configured with unified setup and matrix strategies:
- Tests: Matrix strategy with 4 shards for parallel testing
- Quality: Matrix strategy for pint, phpstan, rector, and composer checks
- Deployment: Deployment validation and migration checks
๐ Documentation
๐ค Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ License
This project is open-sourced software licensed under the MIT license.
๐ Acknowledgments
- Laravel Team for the amazing framework
- Tailwind CSS for the utility-first CSS framework
- Alpine.js for lightweight JavaScript framework
- Livewire for full-stack development
- Pest PHP for elegant testing
Happy coding! ๐