PHPackages                             thiagoprz/crud-tools - 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. [Admin Panels](/categories/admin)
4. /
5. thiagoprz/crud-tools

ActiveLibrary[Admin Panels](/categories/admin)

thiagoprz/crud-tools
====================

Easy to use Laravel CRUD package with Controller, Model and Log system built in

1.0.2(2y ago)639011MITPHPPHP ^7.4 || ^8.0 || ^8.1 || ^8.2CI passing

Since Jul 2Pushed 2y agoCompare

[ Source](https://github.com/thiagoprz/crud-tools)[ Packagist](https://packagist.org/packages/thiagoprz/crud-tools)[ RSS](/packages/thiagoprz-crud-tools/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (69)Used By (1)

Laravel Crud Tools
==================

[](#laravel-crud-tools)

Easy to use Laravel CRUD package with Controller, Model and Log system built in.

[![Documentation Status](https://camo.githubusercontent.com/8b476b4ccd50fefef29db129198f143f4bfbedee7e87ee47fac710c6b89d08b9/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f6c61726176656c2d637275642d746f6f6c732f62616467652f3f76657273696f6e3d6c6174657374)](https://laravel-crud-tools.readthedocs.io/en/latest/?badge=latest)[![Dev](https://github.com/thiagoprz/crud-tools/actions/workflows/dev.yml/badge.svg?branch=dev)](https://github.com/thiagoprz/crud-tools/actions/workflows/dev.yml)[![Master](https://github.com/thiagoprz/crud-tools/actions/workflows/master.yml/badge.svg?branch=master)](https://github.com/thiagoprz/crud-tools/actions/workflows/master.yml)

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
    - [CRUD Model](#crud-model)
    - [CRUD Controller](#crud-controller)
- [CRUD Generators](#crud-generators)
    - [Model Generator](#model-generator)
    - [Controller Generator](#controller-generator)
- [Enabling Logs](#enabling-logs)
- [Customizing Routes and Resource Paths](#customizing-routes-and-resource-paths)
- [Contributing](#contributing)
- [Support](#support)

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

[](#installation)

Install through composer using: `composer install thiagoprz/crud-tools`

If you don't have package auto discovery enabled add CrudToolsServiceProvider to your `config/app.php`:

```
...
'providers' => [
    ...
    \Thiagoprz\CrudTools\CrudToolsServiceProvider::class,
],
...

```

Publish Crud Tools service provider to allow stubs customization:

` php artisan vendor:publish --provider="Thiagoprz\CrudTools\CrudToolsServiceProvider"`

Usage
-----

[](#usage)

### CRUD Model:

[](#crud-model)

For models you just need to add the trait ModelCrud and after that create a static property declaring model's validations (based on the create, update and/or delete scenarios), default order, filtering rules, upload file rules, define resources, and with / countable relationships.

- Validations:

```
