PHPackages                             matt-daneshvar/rest - 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. matt-daneshvar/rest

ActiveLibrary[Framework](/categories/framework)

matt-daneshvar/rest
===================

General implementation for Laravel 5 resource controllers

v2.0.1(6y ago)17112MITPHP

Since Aug 10Pushed 5y ago2 watchersCompare

[ Source](https://github.com/matt-daneshvar/laravel-resource-controller)[ Packagist](https://packagist.org/packages/matt-daneshvar/rest)[ RSS](/packages/matt-daneshvar-rest/feed)WikiDiscussions master Synced 3d ago

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

Resource Controller for Laravel
===============================

[](#resource-controller-for-laravel)

[![Packagist Version](https://camo.githubusercontent.com/211d64764ef9e39ce9109e0f81c4394d424763960e055c72ff888b4c3e79c030/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6174742d64616e6573687661722f726573742e737667)](https://camo.githubusercontent.com/211d64764ef9e39ce9109e0f81c4394d424763960e055c72ff888b4c3e79c030/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6174742d64616e6573687661722f726573742e737667)[![Build Status](https://camo.githubusercontent.com/c95024aa167c6045539db1be482060eed453c961546822f6b08a0dd1eee7948d/68747470733a2f2f7472617669732d63692e6f72672f6d6174742d64616e6573687661722f6c61726176656c2d7265736f757263652d636f6e74726f6c6c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/matt-daneshvar/laravel-resource-controller)[![GitHub](https://camo.githubusercontent.com/f4895149beadb2cfbfcc14de43e32b777da0a88c67379bbdf8a8d283074149c1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6174742d64616e6573687661722f6c61726176656c2d7265736f757263652d636f6e74726f6c6c65722e737667)](https://camo.githubusercontent.com/f4895149beadb2cfbfcc14de43e32b777da0a88c67379bbdf8a8d283074149c1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6174742d64616e6573687661722f6c61726176656c2d7265736f757263652d636f6e74726f6c6c65722e737667)

General implementation for Laravel resource controllers.

By assuming a few conventions this package takes care of the repetitive implementation of the CRUD (create, read, update, and delete) operations on a base controller which you can fully customize and extend to your liking.

Installation
------------

[](#installation)

Require the package using composer:

```
composer require matt-daneshvar/rest

```

Usage
-----

[](#usage)

Extend the `ResourceController` and specify a `$resource`. Optionally define a `$rules`property to enforce validation before `store` and `update` operations.

```
