foxws / laravel-essentials
Essentials for Laravel projects
Fund package maintenance!
Requires
- php: ^8.4
- illuminate/support: ^13.0
Requires (Dev)
- larastan/larastan: ^3.9
- laravel/pao: ^1.0
- laravel/pint: ^1.29
- orchestra/testbench: ^11.0
- pestphp/pest: ^5.0
- pestphp/pest-plugin-laravel: ^5.0
- pestphp/pest-plugin-type-coverage: ^5.0.2
- phpstan/extension-installer: ^1.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-25 07:08:04 UTC
README
Laravel Essentials
Essentials for Laravel projects
Inspired by nunomaduro/essentials, but configured differently: instead of an opt-out disabled array, each default here is a class that decides for itself whether it applies (via enabled()), is listed explicitly in an opt-in configurables array, and can be registered at runtime with Essentials::extend() — so other packages can ship their own defaults without the consuming app touching config at all.
Installation
You can install the package via Composer:
composer require foxws/laravel-essentials
You may publish all of the package's resources at once:
php artisan vendor:publish --tag="essentials"
Or, you may publish each resource individually:
Publishing the Configuration File
php artisan vendor:publish --tag="essentials-config"
Usage
Once installed, Laravel Essentials applies a set of sensible defaults automatically — no code required:
// Model::shouldBeStrict(), URL::forceHttps(), Date::use(CarbonImmutable::class), and more.
See the documentation for the full list of defaults and how to enable or disable them.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Thank you for considering contributing to Laravel Essentials! Please review our contributing guide to get started.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- foxws
- All Contributors
- nunomaduro/essentials, for the original idea
License
Laravel Essentials is open-sourced software licensed under the MIT license.