PHPackages                             cyber-duck/restrouter - 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. cyber-duck/restrouter

Abandoned → [cyber-duck/restrouter](/?search=cyber-duck%2Frestrouter)Library[Utility &amp; Helpers](/categories/utility)

cyber-duck/restrouter
=====================

0.0.1(11y ago)145MITPHPPHP &gt;=5.4.0

Since Aug 26Pushed 2y ago27 watchersCompare

[ Source](https://github.com/Cyber-Duck/laravel-rest-routes)[ Packagist](https://packagist.org/packages/cyber-duck/restrouter)[ RSS](/packages/cyber-duck-restrouter/feed)WikiDiscussions master Synced today

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

🚨 Discontinued 🚨
================

[](#-discontinued-)

This functionality is redily available in later versions of Laravel using Route::resource().

Laravel REST Routes
===================

[](#laravel-rest-routes)

An extension to the Laravel Router to add an extra method `->rest()` which creates RESTful routes similar to Laravel's built in resource.

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

[](#installation)

Add the package to your `composer.json` and run `composer update`.

```
{
    "require": {
        "cyber-duck/restrouter": "dev-master"
    }
}

```

Add the service provider in `app/config/app.php`:

```
'CyberDuck\RestRouter\RestRouterServiceProvider',

```

This will add our route class to the IoC container in place of the default, everything will work as standard with the addition of `Route::rest()`

Example Usage
-------------

[](#example-usage)

```
[app/routes.php]
