PHPackages                             ottiem/cruddy - 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. ottiem/cruddy

ActiveProject[Framework](/categories/framework)

ottiem/cruddy
=============

A powerful but simple CRUD builder for Laravel.

045PHP

Since Dec 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ottiem/cruddy)[ Packagist](https://packagist.org/packages/ottiem/cruddy)[ RSS](/packages/ottiem-cruddy/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Cruddy
======

[](#cruddy)

Simple CRUD creation package for Laravel.

Steps to Install
----------------

[](#steps-to-install)

1. composer install ottiem/cruddy
2. php artisan vendor:publish
3. adjust any settings in the newly created config/cruddy.php file
4. add the cruddy connection to all migrations that create the table you want to turn into a basic CRUD resource: `Schema::connection('cruddy')`

Vendor Package files:
---------------------

[](#vendor-package-files)

When you run `php artisan vendor:publish` it will create a config file for you in config/cruddy.php. This is where you can set all your CRUD settings and options. For example, the `needs_ui` variable within config/cruddy.php controls whether to create the frontend view files or not. If you are making an API that does not require a frontend, then you should set this value to false so that the view files will not be created.

Database Connection
-------------------

[](#database-connection)

To set the database connection correctly before running the migrations, the `APP_ENV` variable within your .env file cannot be set to `testing` or `local`.

```
  // Within config/cruddy.php, we can control the creation of the frontend view files like so:
 'needs_ui' => false,

```

### Example:

[](#example)

```
