Skip to content

Releases: phpsa/laravel-api-controller

3.2.0-beta.4

28 Jan 01:49
bdb4e99
Compare
Choose a tag to compare
3.2.0-beta.4 Pre-release
Pre-release
Update HasParser.php

3.2.0-beta.2: fix: improve behaviour of parent resource mapping

28 Jan 00:42
fd1c9ba
Compare
Choose a tag to compare
it will now authorize if the policy exists for the parent,
and binding performance increased by using existing bound resources before trying to call it from the DB if already bound.

Initial version of nested api controller functionality

27 Jan 22:25
1f81e44
Compare
Choose a tag to compare
3.2.0-beta.1

parse the nested parent into the filter / store query

v3.1.1

20 Jan 02:28
Compare
Choose a tag to compare

Fix api make command

Gated Response Fields

19 Jan 22:22
7478119
Compare
Choose a tag to compare

Example implementations

//Controller
protected $resourceModel = MyClass::class;
protected $resourceSingle = MyClassResource::class;
...
// this used to require the ID and casts where INT based. (some keys may be string based)
// passing the route param is also better long term as is more laravelEsq
public function show(MyClass $record) {
    return $this->handleShowAction($record);
}

//MyClassResource

protected static array $fieldGates = [
    'gate_name' => [
        'field 1',
        'field 2',
     ],
     'gate_two' => [
       'field 3,
     ]
];

v3.0.0

11 Jan 23:45
Compare
Choose a tag to compare

Breaking change:
Response objects call the toArray method recurslivly

Fix Raw Methods

27 Nov 05:51
Compare
Choose a tag to compare

Raw Methods now apply global scopes
minor change however can have effects on your queries

Bulk Actions Update

05 Nov 01:21
43b1929
Compare
Choose a tag to compare

Update to the work on builk actions, this introduces some enhancements, but should still be carefully tested before use

3.0.0-Alpha 1

14 Dec 22:14
d15f109
Compare
Choose a tag to compare
3.0.0-Alpha 1 Pre-release
Pre-release
3.0.0-a.1

fix(security): Make sure laravel version is after 7.30.3

2.3.0

07 Sep 20:41
d15f109
Compare
Choose a tag to compare

Security patch - Make sure laravel version is after 7.30.3
fix: Remove Strict Type for setQueryBuilderWhereStatement (#101)
docs: updated spelling mistake in documentation …