Download the PHP package owowagency/laravel-resources without Composer
On this page you can find all versions of the php package owowagency/laravel-resources. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download owowagency/laravel-resources
More information about owowagency/laravel-resources
Files in owowagency/laravel-resources
Package laravel-resources
Short Description A package to develop projects faster.
License MIT
Informations about the package laravel-resources
Sick and tired of having to create the same controller over and over?
Look no further! OWOW presents "Laravel Resources".
A package that makes creating API endpoints feel like breeze.
π Table of contents
- Installation
- Usage
- Contributing
- License
- OWOW
βοΈ Installation
π Usage
This package adds a few new features to the already existing apiResource
method, model
and requests
.
model
will be used to determine what model is being be handled.
requests
should contain the form requests that are used to validate incoming data during creation and updating.
Route registration
Customizing controllers
All methods in the ResourceController
can be overwritten. We made it a little easier by adding methods like indexModel
, and updateModel
. You will not have to worry about validating, authorization, or returning the models as response.
Eloquent API resources
This package will always try to return the API resource representation of the specified model. It applies auto discovery to determine what resource to use.
By default it will use the following pattern to discover the resource class:
In case of a Post
model that will become:
Configuration
Configuration can be published with:
π«Ά Contributing
Please see CONTRIBUTING for details.
π License
The MIT License (MIT). Please see License File for more information.
This package has been brought to you with much love by the wizkids of OWOW. Do you like this package? Weβre still looking for new talent and Wizkids. So do you want to contribute to open source, while getting paid? Apply now
All versions of laravel-resources with dependencies
dees040/laravel-api-responses Version ^0.3
laravel/pint Version ^1.10