Skip to content
This repository has been archived by the owner on Aug 9, 2018. It is now read-only.
/ eloquent-resources Public archive

Package for generic resource classes. Interfaces, Controllers, Validations, Entities, Repositories, Criterias etc

License

Notifications You must be signed in to change notification settings

xdefrag/eloquent-resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attention!

This package was used on my past work projects as easy code generating tool: it has minimum possibilities, unfortunately no tests inside package (we experienced troubles to make laravel essentials like container or routes to work and have no idea about great tools like orchestral's testbench yet) and some bugs. For now I have no interests to maintain this package, if you would like to continue work with that code = do yourself a favor, fork it and then use it. Thanks.

Eloquent Resources

Common tools for quick resources creation including Repository with Interface, Validation and Controller with Interface.

Installation

Package in deep development, for now only "dev-master" available.

composer require devjs/eloquent-resources:dev-master

If Laravel/lumen version lower 5.5, register package service provider manualy.

Devjs\EloquentResources\EloquentResourcesServiceProvider

Usage

You can create bunch of useful things by typing

php artisan eloquent-resources:generate <entityName>

where entityName is Eloquent Model under App\Entity namespace. Make sure you're created bindings for interfaces (Http and Repository) and routes mapping (all, get, create, update, destroy).

For more info checkout command help.

php artisan help eloquent-resources:generate

About

Package for generic resource classes. Interfaces, Controllers, Validations, Entities, Repositories, Criterias etc

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages