Download the PHP package davidhoeck/lararest without Composer
On this page you can find all versions of the php package davidhoeck/lararest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download davidhoeck/lararest
More information about davidhoeck/lararest
Files in davidhoeck/lararest
Download davidhoeck/lararest
More information about davidhoeck/lararest
Files in davidhoeck/lararest
Vendor davidhoeck
Package lararest
Short Description The simplest way to create CRUD REST API routes.
License MIT
Package lararest
Short Description The simplest way to create CRUD REST API routes.
License MIT
Please rate this library. Is it a good library?
Informations about the package lararest
LaraRest
Keep your API routes file clean and generate your CRUD routes via LaraRest.
STEP 1
Install LaraRest via Composer.
STEP 2
Create your eloquent models.
STEP 3
Go to your api.php
in the routes
folder.
STEP 4
Initialize the RestApiProvider
. Just paste the following lines of code,
at the top of your api.php
file.
STEP 5
Hook your models into the provider. Add every model your want your CRUD REST routes to be generate.
EXAMPLE
The following line of code ...
... produces these routes.
Method | URI | Name | Action | Middleware |
---|---|---|---|---|
GET | api/users | api.users.index | App\Http\Controllers\UserController@index | api |
DELETE | api/users | api.users.create | App\Http\Controllers\UserController@create | api |
GET | api/users/paginate | api.users.paginate | App\Http\Controllers\UserController@paginate | api |
GET | api/users/{id} | api.users.find | App\Http\Controllers\UserController@find | api |
PUT | api/users/{id} | api.users.update | App\Http\Controllers\UserController@update | api |
DELETE | api/users/{id} | api.users.delete | App\Http\Controllers\UserController@delete | api |
All versions of lararest with dependencies
PHP Build Version
Package Version
The package davidhoeck/lararest contains the following files
Loading the files please wait ....