laravel-contracts maintained by juniorfontenele
Description
Set of Laravel Contracts
Author
Last update
2025/12/15 16:27
(dev-dependabot/github_actions/actions/cache-5)
License
Downloads
0
Laravel Contracts
A set of reusable contracts (interfaces) for Laravel projects, designed to standardize and simplify the implementation of common patterns such as validation, filtering, and data transformation.
Features
- Validation Contracts: Define how data should be validated in a consistent way.
- Filter Contracts: Standardize query filtering logic.
- Data Contracts: Ensure data objects can be easily converted to and from arrays.
Installation
composer require juniorfontenele/laravel-contracts
Usage
Implement the provided interfaces in your classes to enforce consistent structure and behavior.
Example:
use JuniorFontenele\LaravelContracts\Validation\Validatable;
class MyRequest implements Validatable
{
// Implement required methods: validate(), rules(), messages(), attributes()
}
License
MIT License. See LICENSE for details.