PHPackages                             makaveli/laravel-crudler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. makaveli/laravel-crudler

ActiveLibrary[Framework](/categories/framework)

makaveli/laravel-crudler
========================

Advanced Crudler for Laravel

1.1.21(1mo ago)0311MITPHPPHP ^8.2

Since Apr 26Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Ma1kaveli/laravel-crudler)[ Packagist](https://packagist.org/packages/makaveli/laravel-crudler)[ RSS](/packages/makaveli-laravel-crudler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (12)Versions (39)Used By (1)

Laravel Crudler
===============

[](#laravel-crudler)

[![Packagist Version](https://camo.githubusercontent.com/0e128fd5cd4cbd3df66671a862aeae63d44949413aaa0985d75d96b93db8f73a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616b6176656c692f6c61726176656c2d637275646c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/makaveli/laravel-crudler)[![Packagist Downloads](https://camo.githubusercontent.com/4976b1b4497325443e33234fbd2ac1a1ac4196f2b65afbabbd6c40fa66072a4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616b6176656c692f6c61726176656c2d637275646c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/makaveli/laravel-crudler)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

🌍 Languages
-----------

[](#-languages)

- 🇺🇸 English (default)
- 🇷🇺 [Русская версия](docs/ru/README.md)

Table of Contents
-----------------

[](#table-of-contents)

1. [Introduction](#introduction)
2. [Requirements](#requirements)
3. [Installation](#installation)
4. [Configuration](#configuration)
5. [Core Components](#core-components)
    - [Request (Validation)](#request-validation)
    - [Policy (Authorization)](#policy-authorization)
    - [Resource (Response Formatting)](#resource-response-formatting)
    - [Repository (Data Reading)](#repository-data-reading)
    - [Service (Mutations)](#service-mutations)
    - [Action (Business Operations)](#action-business-operations)
    - [Controller (HTTP Handling)](#controller-http-handling)
    - [Router (Routing)](#router-routing)
6. [Usage Examples](#usage-examples)
7. [Recommendations](#recommendations)
8. [Useful Links](#useful-links)

---

Introduction
------------

[](#introduction)

**makaveli/laravel-crudler** is a modular framework for creating CRUD operations in Laravel applications. It provides a unified approach to configuring all application layers: from validation and authorization to response formatting and routing. Each layer is configured declaratively through builders, making the code clean, testable, and easily reusable.

The package integrates tightly with `makaveli/laravel-core` (DTO, BaseRepository, BaseService) and `makaveli/laravel-query-builder` (filtering), uses `laravel-logger` for logging, and supports soft deletes through traits.

Key features:

- **Separation of concerns** – each layer is responsible for its own task: validation, authorization, reading, writing, business logic, HTTP.
- **Declarative configuration** – through builders and DTOs (e.g., `RequestBuilder`, `ServiceBuilder`).
- **Flexible hooks** – in Action you can add logic before/after validation and before/after the service call.
- **Context support** – validation can differ for create/update/delete.
- **Full integration with the makaveli ecosystem** – DTOs, repositories, services, resources, logging.

---

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 10.10, 11.0 or 12.0
- [makaveli/laravel-core](https://github.com/Ma1kaveli/laravel-core) (installed automatically)
- [makaveli/laravel-query-builder](https://github.com/Ma1kaveli/laravel-query-builder) (installed automatically)
- [makaveli/laravel-logger](https://github.com/Ma1kaveli/laravel-logger) (installed automatically)

---

Installation
------------

[](#installation)

1. Install the package via Composer:

    ```
    composer require makaveli/laravel-crudler
    ```
2. (Optional) Publish the configuration file if you want to change the default settings:

    ```
    php artisan vendor:publish --tag=crudler-config
    ```

    This will create a `config/crudler.php` file.
3. The `CrudlerServiceProvider` is registered automatically.

---

Configuration
-------------

[](#configuration)

The `config/crudler.php` file contains default settings for all layers. You can override error messages, success operation texts, and other parameters.

```
