datalogix/laravel-utils

A Laravel package that provides a set of useful utilities and service providers to enhance your application.
1,136 2
Install
composer require datalogix/laravel-utils
Latest Version:v5.8.0
PHP:^8.2
License:MIT
Last Updated:Sep 23, 2026
Links: GitHub  ·  Packagist
Maintainer: ricardogobbosouza

Laravel Utils

Latest Stable Version Total Downloads tests codecov License

A Laravel package that provides a set of useful utilities and service providers to enhance your application.

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—no additional configuration required:

  • 🌍 Multi-language Support Includes Laravel's built-in translations (auth, pagination, passwords, validation and JSON strings) for English (en) and Brazilian Portuguese (pt_BR). Files are auto-loaded and can be published for customization. Translations for Respect Validation rules and error pages are provided by their own packages.

  • ✔️ Respect Validation Integration Automatically integrates Respect Validation via datalogix/laravel-validation, with zero setup required.

  • 🧠 Enhanced Query Builder Adds useful, reusable macros to Laravel's query builder for cleaner and more expressive queries — powered by datalogix/laravel-builder-macros.

  • 🧩 Sensible Defaults for Laravel Applies opinionated, production-ready defaults to improve performance, security, and testability — powered by datalogix/laravel-sensible.

  • 🚨 Custom Error Pages Provides ready-to-use, customizable error pages for your application — powered by datalogix/laravel-error-pages.

  • 🛠️ Console Support Translation files can be published using Artisan when running in the console environment.

Helpers

statesBR(); // ['AC' => 'Acre', 'AL' => 'Alagoas', ..., 'TO' => 'Tocantins']

Translations

To publish the language files, run:

php artisan vendor:publish --provider="Datalogix\Utils\UtilsServiceProvider" --tag="lang"

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"

Related Packages

tlr/laravel-utils

A collection of common classes from several projects

324 2
fsauter/laravel-web-utils

A simple collection of useful helpers for laravel.

18 1
joeloco/bootstrap

A bootstrap 3 helper for Laravel 5

13 5
tembra/laravel-utils

Laravel/Lumen Utils for use on MyTDT corp.

6 0
onemustcode/laravel

Handy Laravel utils

2,217 0

Version History

Version Released PHP Laravel License
v5.8.0 ^8.2 ^11.0|^12.0|^13.0 MIT
v5.7.0 ^8.2 ^11.0|^12.0|^13.0 MIT
v5.6.0 ^8.2 ^11.39|^12.0 MIT
v5.5.0 ^8.2 ^11.39|^12.0 MIT
v5.4.0 ^8.2 ^11.39|^12.0 MIT