Skip to content

Releases: BinarCode/laravel-restify

4.0.1

09 Dec 13:13
6bbdaec
Compare
Choose a tag to compare

Fixed

  • Fix: Fallback for plain related values

4.0.0

08 Dec 11:09
66d7b1c
Compare
Choose a tag to compare

Added

  • Available filters.
  • Fields for relations.
  • Security improvements.
  • Mock data generator: php artisan restify:stub users --count=10 now support relations

And much much more, see official documentation.

3.18.0

30 Oct 08:33
a0da4c8
Compare
Choose a tag to compare

Fixed

Psalm comments.

3.17.0

16 Oct 10:14
287da8b
Compare
Choose a tag to compare

3.16.0

02 Sep 13:14
e6ff1e9
Compare
Choose a tag to compare

Added

Standalone actions

Sometimes you don't need to have an action with models. Let's say for example the authenticated user wants to disable his account. For this we have standalone actions:

// UserRepository

    public function actions(RestifyRequest $request)
    {
        return [
            DisableProfileAction::new()->standalone(),
        ];
    }

URI Key

Usually the URL for the action is make based on the action name. You can use your own URI key if you want:

class DisableProfileAction extends Action
{
    public static $uriKey = 'disable_profile';

    //...
}

3.15.0

24 Aug 14:15
f7efaf9
Compare
Choose a tag to compare

Added

  • mainQuery on repositories, now you can use this for show and index endpoints
  • Added Binaryk\LaravelRestify\Models\CreationAware interface. Now you can extend it, and you will take the control over the model saving
  • now you can add a single entity to related

3.14.0

05 Aug 07:35
69edb92
Compare
Choose a tag to compare

Added

  • Loading relationship from memory (eagers)

3.13.0

26 Jul 10:57
b48e3e4
Compare
Choose a tag to compare

Added

  • HasMany field
  • BelongsTo field
  • Custom callback for matching
  • Adding new validation support for Unique
  • Using UsersRepository for user profile
  • Adding prefixes for repositories routes

Fixes

  • Related now works with any page

3.12.2

17 Jul 16:32
Compare
Choose a tag to compare

Patch

Fixing filter.

Added

  • booted method for repositories

3.12.1

17 Jul 14:40
Compare
Choose a tag to compare

Added

Profile via User Repository

You can use the UserRepository (if you have one), to resolve the profile and perform the updates over the profile by using the UserProfile trait in your repository:

class UserRepository extends Repository
{
    use Binaryk\LaravelRestify\Repositories\UserProfile;
}

Checkout the documentation for more details.