Download the PHP package jacksunny/customrestful without Composer
On this page you can find all versions of the php package jacksunny/customrestful. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jacksunny/customrestful
More information about jacksunny/customrestful
Files in jacksunny/customrestful
Package customrestful
Short Description custom restful resource controller for laravel
License
Informations about the package customrestful
customrestful
custom restful resource controller plugin for laravel
How to install and configurate package
-
install the laravel package composer require jacksunny/customrestful
-
add restful route in route file like routes/web.php Route::resource('model', 'ModelController');
-
create the resource controller named ModelController php artisan make:controller ModelController --resource
- 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, ],
-
test if it works http://localhost/model/query?view=card
-
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
- please notify me if you got any problem or error on it,thank you!