codewithdennis / larament
A starter template for building projects with Laravel and FilamentPHP.
Fund package maintenance!
CodeWithDennis
Installs: 373
Dependents: 0
Suggesters: 0
Security: 0
Stars: 208
Watchers: 3
Forks: 13
Open Issues: 0
Type:project
Requires
- php: ^8.2
- filament/filament: ^3.2
- laravel/framework: ^11.9
- laravel/pail: ^1.2
- laravel/tinker: ^2.9
- timokoerber/laravel-one-time-operations: ^1.4
Requires (Dev)
- aniftyco/skeletor: 0.1.0
- barryvdh/laravel-debugbar: ^3.13
- fakerphp/faker: ^1.23
- larastan/larastan: ^2.0
- laravel/pint: ^1.13
- laravel/sail: ^1.26
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.0
- pestphp/pest: ^3.0.0
- pestphp/pest-plugin-faker: ^3.0.0
- pestphp/pest-plugin-laravel: ^3.0.0
- pestphp/pest-plugin-livewire: ^3.0.0
- dev-main
- v0.0.25
- v0.0.24
- v0.0.23
- v0.0.22
- v0.0.21
- v0.0.20
- v0.0.19
- v0.0.18
- v0.0.17
- v0.0.16
- v0.0.15
- v0.0.14
- v0.0.13
- v0.0.12
- v0.0.11
- v0.0.10
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-CodeWithDennis-patch-1
- dev-minor-setup-changes
- dev-filament-user-can-access-panel-change
- dev-feature-aniftyco-skeletor
This package is auto-updated.
Last update: 2024-12-12 14:55:22 UTC
README
Larament is a time-saving starter kit to quickly launch Laravel projects. It includes FilamentPHP pre-installed and configured, along with additional tools and features to streamline your development workflow.
Table of Contents
Features
Security and Testing
- PESTPHP: Preconfigured with test cases for streamlined testing. (Learn more)
- Strict mode enabled via Should Be Strict:
- Prevents lazy loading (N+1 queries).
- Guards against discarding or accessing missing attributes.
- Production safeguards: Prevents destructive commands in production. (Learn more)
- Architectural testing with Archtest.
- Static analysis using PHPStan.
- Debugging with Laravel Debugbar.
Quality of Life
- Custom login page autofills email and password with seeded data for quicker testing.
- Built-in password generator action on the user profile and user resource pages.
- Enhanced global search includes email addresses for better discoverability.
- Auto-translatable component labels.
composer review
: A single command to run Pint, PHPStan, and PEST.- Helper functions available through a dedicated helper file.
- Custom
php artisan make:filament-action
command for generating Filament actions.
Design
- Filament Panel's primary color is preset to blue.
- Single Page Application (SPA) mode enabled by default.
- Global search keybinding set to
CTRL + K
orCMD + K
. - A ready-to-use FilamentPHP custom theme, including a sidebar separator.
- Enhanced profile page with a built-in password generator.
Default User
A default user is seeded with the following credentials, pre-filled on the login page for quick access:
DEFAULT_USER_NAME="John Doe" DEFAULT_USER_EMAIL="admin@example.com" DEFAULT_USER_PASSWORD="password"
Included Packages
The following packages are pre-installed:
Installation
Using the Template
- Create a repository using the Larament template.
- Clone your repository to your local machine. Navigate to the project directory and run the following commands:
composer install
npm install && npm run build
cp .env.example .env
php artisan key:generate
php artisan migrate
php artisan db:seed
CLI Installation
Alternatively, you can use the following command to create a new project with Larament:
composer create-project --prefer-dist CodeWithDennis/larament example-app
Create a Terminal Alias
For easier usage in future projects, create an alias in your terminal:
alias larament="composer create-project --prefer-dist CodeWithDennis/larament"
Now, you can create a new project with a simple command:
larament my-cool-app