jacksunny/customrestful

custom restful resource controller for laravel
19
Install
composer require jacksunny/customrestful
Latest Version:v1.0
Last Updated:Aug 8, 2017
Links: GitHub  ·  Packagist
Maintainer: jacksunny2020

customrestful

custom restful resource controller plugin for laravel

How to install and configurate package

  1. install the laravel package composer require jacksunny/customrestful

  2. add restful route in route file like routes/web.php Route::resource('model', 'ModelController');

  3. create the resource controller named ModelController php artisan make:controller ModelController --resource

  4. append new service provider file line in the section providers of file app.config after appended,it should looks like 'providers' => [ Illuminate\Auth\AuthServiceProvider::class, ...... Jacksunny\CustomRestful\CustomRestfulServiceProvider::class, ],

  5. test if it works http://localhost/model/query?view=card

  6. if you need to custom diff route , related controller method mapping and acceptable route method, just modify each ResourceRegistrarRuleXXX class or create new registrar rule class which implements ResourceRegistrarRuleContract

  7. please notify me if you got any problem or error on it,thank you!

Related Packages

erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

628,058,007 9,707
laravel/framework

The Laravel Framework.

576,155,700 34,907
laravel/tinker

Powerful REPL for the Laravel framework.

485,678,092 7,440