Laravel Entities

Bitbucket Repository

This package introduces the concept of Entities into Laravel. It allows for grouping of all entity types for use in things such as dashboards. For example, you may have a Book, Customer, and Store model, and if these are given the IsEntity trait, they can be fetched in an Admin panel with the EntityTypes::getEntities function. Rather than having to fetch them individually.

Extending the IsEntity trait will give you the ability to introduce shared functionality between all simple entities, speeding up development of things like Admin Dashboards or user forms. An example of this exists in the included IsEntity trait, which implements the concept of a Default Template for all entities that can be overridden by an indivudal entity if needed.