PHPackages                             wislem/scaffenger - 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. wislem/scaffenger

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

wislem/scaffenger
=================

0.6.6(10y ago)3331MITJavaScriptPHP &gt;=5.5.9

Since Mar 27Pushed 10y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (4)Versions (12)Used By (0)

Scaffenger for Laravel 5.1
==========================

[](#scaffenger-for-laravel-51)

A scaffolding generator for any database setup ;)

It has its own UI (can be swapped with any custom made template).

Supports a total of 17 column types including:

Column typeDescription`pk`The primary key of the table (usually `id`)`slug`A varchar that gets slugified by the column with name `title` and type `text``text`Plain text`textarea`Plain textarea`password`A password column (has several functionalities for changing it or not preloading its value etc.)`wysiwyg`It's a textarea marked as a wysiwyg along with the proper css class to load your preferred js editor (I'm using summernote here)`date`A date field that gets formatted according to your needs and shows a datepicker in forms`datetime`See `date` plus time support`fk`If your table has relationships, then this type is for you`image`Using dropzone.js to handle this on forms, shows thumbnail with lightbox in list view`file``TODO``bool`A 0`order`input\[type="number"\] in forms and can be updated in the list view on the fly`select`A set of custom selections (can be anything in your db table -- enum, tinyint... w/e)`url`Text column (input\[type="url"\] in forms)`number`Int column (input\[type="number"\] in forms)`email`Email column (input\[type="email"\] in forms)`address``TODO`Installation steps
------------------

[](#installation-steps)

### Step 1: Install package

[](#step-1-install-package)

Add the package inside your composer.json requirements:

```
composer require wislem/scaffenger
```

Add the ServiceProvider to your `config/app.php` file:

```
'Wislem\Scaffenger\ScaffengerServiceProvider',
```

In the User class, add the ShinobiTrait:

```
use Pingpong\Traits\TrustyTrait;

class User extends Model implements AuthenticatableContract, CanResetPasswordContract {

	use Authenticatable, CanResetPassword, TrustyTrait;

	// ...
}
```

### Step 2: Publish

[](#step-2-publish)

```
php artisan vendor:publish
```

#### This will publish the following:

[](#this-will-publish-the-following)

- Config files
- Migrations
- Seeds
- Assets
- Views

### Step 3: Run migrations and seeds

[](#step-3-run-migrations-and-seeds)

Add seeds to your main `DatabaseSeeder` class

```
