Skip to content

Releases: phpsa/laravel-api-controller

Allows us to override the default fieldsets via a custom defaultFields method on your resource

15 Oct 03:14
916c868
Compare
Choose a tag to compare

Allows us to override the default fieldsets via a custom defaultFields method on your resource

Code Improvements

14 Oct 20:19
2058b00
Compare
Choose a tag to compare
  • includes fields patched to not try select unknown fields
  • reduce redundent lookup on put event
  • moved policies / validation to correct folder
  • Apply fixes from StyleCI (#76) / Scrutinizer

AddFields Custom Field case Fix

12 Oct 22:43
b0c21b3
Compare
Choose a tag to compare

fixes forced camel case when an custom field is appended

Table column parsing fix

11 Oct 20:39
b6027b7
Compare
Choose a tag to compare
  • Fixes issue with table parsing where database connection overwritten / db.tablename notation used.
  • minor code quality improvement in

Scope value splitable with pipes

30 Sep 20:17
50e5d18
Compare
Choose a tag to compare

Minor breaking change

if you are using double pipes in your scopes at the moment this will impact you as we now split on that before passing to the scope

Usability Update

29 Sep 01:26
94ae5b1
Compare
Choose a tag to compare
  • implemented #68
  • scope naming convention tidied up and automatic removal of the scope keyword from a scope.

MorphMany

27 Sep 21:47
e558e4a
Compare
Choose a tag to compare

• Added method to process belongToMany and morphToMany relationships.

  • Added notes about relationship sync

Magic Eloquent Getters

25 Sep 01:44
8952b45
Compare
Choose a tag to compare

Allows api request fields / addfields to request fields mapped via the getFIELDAttribute in the eloquent model

Laravel 8 Support / Morph Support

24 Sep 01:37
289e42f
Compare
Choose a tag to compare
  • Added Laravel 8 support
  • added storing via morphOne and MorphMany relationships to the api.

Fix Scope Case Issue

26 Jul 21:18
0b04363
Compare
Choose a tag to compare

Fixes an issue where scopes case sensitivity in url parsing caused issues.