PHPackages                             timenz/crud - 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. timenz/crud

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

timenz/crud
===========

2421HTML

Since Apr 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/timenz/laravel-crud-package)[ Packagist](https://packagist.org/packages/timenz/crud)[ RSS](/packages/timenz-crud/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Admin Crud
------------------

[](#laravel-admin-crud)

Laravel Controller extended, to easier create crud page.

### Limitation and Requirement

[](#limitation-and-requirement)

- Laravel 5.1
- Mysql/Mariadb database
- Bootstrap css framework
- only 1 crud on one page

### Install

[](#install)

Add to composer.json

```
{
	"require": {
        "timenz/crud": "dev-master"
	}
}

```

To add support *WYSIWYG* and *image* field type add this other two repository that forked from [guillermomartinez](https://github.com/guillermomartinez/filemanager-laravel)and [kevbaldwyn](https://github.com/kevbaldwyn/image), and the composer requirement become:

```
{
	"require": {
        "timenz/crud": "dev-master",
        "timenz/filemanager-laravel": "dev-l5.1",
        "timenz/image":"dev-l5.1"
	}
}

```

then update

```
composer update

```

add to $app\['providers'\]

```
\Timenz\Crud\CrudServiceProvider::class,
\Pqb\FilemanagerLaravel\FilemanagerLaravelServiceProvider::class,
\KevBaldwyn\Image\Providers\Laravel\ImageServiceProvider::class,

```

and to $app\['aliases'\]

```
    'ImageSrc'  => \KevBaldwyn\Image\Providers\Laravel\Facades\Image::class,

```

publish view and asset

```
php artisan vendor:publish

```

Javascript Libs Dependency

```
{
	"bootstrap": "~3.3.0",
	"bootstrap-datepicker": "1.3.0",
    "chosen": "~1.4.2",
    "eonasdan-bootstrap-datetimepicker": "~4.17.37"
}

```

Master blade view, this view basically from bootstrap sample page.

```

    Crud Master Example

    @yield('crud_css')

    @yield('crud_konten')

@yield('crud_js')

```

### Mininal code example

[](#mininal-code-example)

create resource route

```
Route::resource('article', 'ArticleCrud');

```

then create controller

```
