Skip to content

friendsofcat/laravel-api-model-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-api-model-server

Easy to implement configurable API solution for Eloquent Models.

Goes hand in hand with Laravel API model package.

Features:

  • Configurable schema - used as a transformation layer between model and API

    • allow / restrict specific attributes
    • allow / restrict specific scopes
    • allow eager load specific relations with possibility to allow only specific columns
    • ability to set attribute / scope aliases
    • allow specific methods like ‘get’, ‘exists’, ‘count’, ‘avg’ etc. (defaults to ‘get’, ‘exists’)
    • allow raw clauses (restricted by default)
  • Validates incoming payload according to schema

  • Prepares data for query builder

  • Builds query

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages