PHPackages                             raphaelvilela/crud-rails - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. raphaelvilela/crud-rails

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

raphaelvilela/crud-rails
========================

Rails to create super fast CRUDs.

1.0.3(8y ago)074MITPHP

Since Mar 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/raphaelvilela/crud-rails)[ Packagist](https://packagist.org/packages/raphaelvilela/crud-rails)[ RSS](/packages/raphaelvilela-crud-rails/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

crud-rails
==========

[](#crud-rails)

\##Instalação Para instalar esse pacote, é necessário executar os seguintes comandos:

```
composer require raphaelvilela/crud-rails
php artisan vendor:publish

```

É necessário publicar arquivos do pacote **laravel-pagination** e **raphaelvilela/crud-rails**.

\##Utilização Para a criação de um CRUD é necessário seguir os seguintes passos:

\###Passo 01 - Crie seu modelo Sugerimos que você crie seu modelo a partir do comando abaixo, pois assim já será criado o migration e o controller

```
php artisan make:model NomeDoModelo -mc

```

Altere o migration de forma coerente com os campos de seu interesse e execute o migration em seu banco de dados.

\###Passo 02 - Configure o Model Adicione ao seu modelo as variáveis abaixo para que este possa validar as requisições realizadas.

```
protected $guarded = [];
public $rules = [
    'field_name_01' => 'required',
    'field_name_02' => 'required',
    'field_name_03' => 'required',
    'field_name_04' => 'required',
    'field_name_05' => 'required'
];

```

\###Passo 04 - Configure o Controller Deve-se alterar o Controller criado para que ele extenda ModelController. Ele também deve informar a qual Model este controller se refere.

```
class NomeDoModelController extends ProductSiteModelController
{
    public function __construct()
    {
        parent::__construct(NomeDoModel::class);
    }

```

\###Passo 03 - Construa as views do CRUD Para cada CRUD é necessário criar uma pasta contendo duas view: A primeira que lista os registros e a segunda que crie um formulário para cadastro e alteração de registros.

```
nome_do_model/index.blade.php

    @extends('crud-rails::forms.list')
    @section('list-table')
        {{$paginate_models->links()}}

            Name
            Ações

            @foreach($paginate_models as $model)

                    {{$model->name}}

                             Editar

                            {{ csrf_field() }}

            @endforeach

        {{$paginate_models->links()}}
    @endsection

```

```
nome_do_model/index.blade.php

    @extends('crud-rails::forms.form')
    @section('fields')
        @include("crud-rails::forms.components.inputText", ['name' => 'name'])
        @include("crud-rails::forms.components.submit",    ['name' => 'save'])
    @endsection

```

\###Passo 04 - Adicione a rota Basta adicionar a rota abaixo no arquivo routes/web.php e você já terá um CRUD completo.

```
    Route::resource('nome_do_model', 'NomeDoModelController');

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

3061d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1414707?v=4)[Raphael Vilela](/maintainers/raphaelvilela)[@raphaelvilela](https://github.com/raphaelvilela)

---

Top Contributors

[![raphaelvilela](https://avatars.githubusercontent.com/u/1414707?v=4)](https://github.com/raphaelvilela "raphaelvilela (1 commits)")

### Embed Badge

![Health badge](/badges/raphaelvilela-crud-rails/health.svg)

```
[![Health](https://phpackages.com/badges/raphaelvilela-crud-rails/health.svg)](https://phpackages.com/packages/raphaelvilela-crud-rails)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[bagisto/bagisto

Bagisto Laravel E-Commerce

28.0k175.2k9](/packages/bagisto-bagisto)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.8M227](/packages/backpack-crud)[statamic/cms

The Statamic CMS Core Package

4.9k3.8M1.1k](/packages/statamic-cms)[code16/sharp

Laravel Content Management Framework

79266.1k10](/packages/code16-sharp)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2087.0k31](/packages/ronasit-laravel-helpers)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
