datalogix/laravel-utils
| Install | |
|---|---|
composer require datalogix/laravel-utils |
|
| Latest Version: | v6.1.0 |
| PHP: | ^8.2 |
| Laravel: | 12 · 13 |
| Older releases: | 7 – 11 |
| License: | MIT |
| Last Updated: | Nov 13, 2026 |
| Links: | GitHub · Packagist |
Laravel Utils
A Laravel package that provides a set of useful utilities and service providers to enhance your application.
Requirements
- PHP 8.2 or higher
- Laravel 12 or 13
Installation
You can install the package via composer:
composer require datalogix/laravel-utils
The package will automatically register itself.
Features
These features work out of the box, with no additional configuration:
- 🌍 Multi-language support: Laravel's built-in translations (
auth,pagination,passwords,validationand JSON strings) for English (en) and Brazilian Portuguese (pt_BR). They are loaded automatically, and any key your application defines in its ownlang/folder takes precedence. Translations for Respect Validation rules and error pages are provided by their own packages. - ✔️ Respect Validation integration: Respect Validation rules through datalogix/laravel-validation, with zero setup.
- 🧠 Query builder macros: reusable macros for cleaner, more expressive queries, powered by datalogix/laravel-builder-macros.
- 🧩 Sensible defaults: opinionated, production-ready defaults for performance, security and testability, powered by datalogix/laravel-sensible.
- 🚨 Error pages: ready-to-use, customizable error pages, powered by datalogix/laravel-error-pages.
Helpers
statesBR(); // ['AC' => 'Acre', 'AL' => 'Alagoas', ..., 'TO' => 'Tocantins']
Translations
To customize the translations, publish them:
php artisan vendor:publish --tag="laravel-utils-lang"
This copies the package's whole lang folder into your application's lang/ folder. Published keys take precedence over the package and no longer receive its updates; keys added to the package later are still loaded from it. Existing files are not overwritten; use --force to replace them (this discards your edits).
[!NOTE] The
langtag still works but is deprecated and will be removed in the next major version. Uselaravel-utils-langinstead.
Translations shipped by the bundled packages are published through their own tags:
php artisan vendor:publish --tag="laravel-validation-lang"
php artisan vendor:publish --tag="error-pages-lang"
Changelog
See GitHub Releases.
License
The MIT License (MIT). See LICENSE.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v6.1.0 | ^8.2 | ^12.0| | MIT | |
| v6.0.0 | ^8.2 | ^12.0| | MIT | |
| v5.8.0 | ^8.2 | ^11.0| | MIT | |
| v5.7.0 | ^8.2 | ^11.0| | MIT | |
| v5.6.0 | ^8.2 | ^11.39| | MIT | |
| v5.5.0 | ^8.2 | ^11.39| | MIT | |
| v5.4.0 | ^8.2 | ^11.39| | MIT | |
| v5.3.0 | ^8.2 | ^11.39| | MIT | |
| v5.2.0 | ^8.2 | ^11.39| | MIT | |
| v5.1.0 | ^8.2 | ^11.39| | MIT | |
| v5.0.1 | ^8.2 | ^11.39| | MIT | |
| v5.0.0 | ^8.2 | ^11.39| | MIT | |
| v4.4.0 | ^7.4| | ^8.0| | MIT | |
| v4.3.0 | ^7.4| | ^8.0| | MIT | |
| v4.2.0 | ^7.4| | ^8.0| | MIT | |
| v4.1.0 | ^7.4| | ^8.0| | MIT | |
| v4.0.0 | ^7.4| | ^8.0| | MIT | |
| v3.20.0 | ^7.3| | ^7.0| | MIT | |
| v3.19.0 | ^7.3| | ^7.0| | MIT | |
| v3.18.0 | ^7.3| | ^7.0| | MIT | |
| v3.17.0 | ^7.3| | ^7.0| | MIT | |
| v3.16.0 | ^7.3| | ^7.0| | MIT | |
| v3.15.0 | ^7.3| | ^7.0| | MIT | |
| v3.14.0 | ^7.3| | ^7.0| | MIT | |
| v3.13.0 | ^7.3| | ^7.0| | MIT | |
| v3.12.0 | ^7.3| | ^7.0| | MIT | |
| v3.11.0 | ^7.3| | ^7.0| | MIT | |
| v3.10.0 | ^7.3| | ^7.0| | MIT | |
| v3.9.0 | ^7.3| | ^7.0| | MIT | |
| v3.8.0 | ^7.3| | ^7.0| | MIT |
Showing the latest 30 of 50. See every release on Packagist