PHPackages                             askedio/laravel-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. [Admin Panels](/categories/admin)
4. /
5. askedio/laravel-cruddy

AbandonedArchivedLibrary[Admin Panels](/categories/admin)

askedio/laravel-cruddy
======================

A JSON API CRUD Package for Laravel 5

0.0.7.x-dev(10y ago)12423MITPHPPHP &gt;=5.5.9

Since Mar 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Askedio/laravel-Cruddy)[ Packagist](https://packagist.org/packages/askedio/laravel-cruddy)[ RSS](/packages/askedio-laravel-cruddy/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

[![laravel-cruddy](https://camo.githubusercontent.com/65a6269436ec5d35f99ca12967707bed69c990080c4cf6f42137df64fce0719a/687474703a2f2f692e696d6775722e636f6d2f546d4568316d362e6a706767)](https://camo.githubusercontent.com/65a6269436ec5d35f99ca12967707bed69c990080c4cf6f42137df64fce0719a/687474703a2f2f692e696d6775722e636f6d2f546d4568316d362e6a706767)

A really simple package that provides a CRUD JSON API for your Laravel 5 application.

[![Build Status](https://camo.githubusercontent.com/dbcb0c440b692f384be232ed5b7c0e9d330c1fecf39527fd516bdab893bdc08d/68747470733a2f2f7472617669732d63692e6f72672f41736b6564696f2f6c61726176656c2d4372756464792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Askedio/laravel-Cruddy)[![StyleCI](https://camo.githubusercontent.com/f03f7d61465ef15dc1e232447e7483dbaf44403af9b0b032726034ec52cc9c04/68747470733a2f2f7374796c6563692e696f2f7265706f732f35323735323535322f736869656c64)](https://styleci.io/repos/52752552)[![Code Climate](https://camo.githubusercontent.com/dbce2e9b1456df3adf930b0388ee41ebd4c4eca338191b0ad3c8954ae54b3895/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f41736b6564696f2f6c61726176656c2d4372756464792f6261646765732f6770612e737667)](https://codeclimate.com/github/Askedio/laravel-Cruddy)[![Codacy Badge](https://camo.githubusercontent.com/66f6fa506800f2ed96d41b9ce57db7cfab301482cb2057ef8df7fdf8ba308c37/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f67726164652f6332663232393166653361663465613361353131616661363464646330333462)](https://www.codacy.com/app/gcphost/laravel-Cruddy)[![Codacy Badge](https://camo.githubusercontent.com/9d689d26589b34333fcb0f0282966c1b27e37ee394d08c20d4cdf5bf47e96925/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f636f7665726167652f6332663232393166653361663465613361353131616661363464646330333462)](https://www.codacy.com/app/gcphost/laravel-Cruddy)

- [Live Demo](https://cruddy.io/app/).
- [Laravel 5.2 Example Package](https://github.com/Askedio/Laravel-5-CRUD-Example).
- Plays well with [jQuery CRUDdy](https://github.com/Askedio/jQuery-Cruddy).

Installation
============

[](#installation)

### Composer: require

[](#composer-require)

```
composer require askedio/laravel-cruddy:dev-master

```

### Providers: config/app.php

[](#providers-configappphp)

Add the Service Provider to your providers array.

```
'providers' => [
    Askedio\Laravel5ApiController\Providers\GenericServiceProvider::class,
        ...

```

### Model: app/User.php

[](#model-appuserphp)

Add the traits to your Model to enable the Api and Search features. [More Details &amp; Options.](https://github.com/Askedio/laravel-Cruddy/wiki/Models)

```
class User extends Authenticatable
{

    use \Askedio\Laravel5ApiController\Traits\ModelTrait;
    use \Askedio\Laravel5ApiController\Traits\SearchableTrait;
    ...

```

### Controller: app/Http/Controllers/Api/UserController.php

[](#controller-apphttpcontrollersapiusercontrollerphp)

Create a new controller for your API. [More Details &amp; Options](https://github.com/Askedio/laravel-Cruddy/wiki/Controllers).

```
