Use ApiSerializer attributes method

This commit is contained in:
Alexander Skvortsov 2021-03-13 17:04:58 -05:00
parent c01dc63c5d
commit 06dfd8a603

View File

@ -37,7 +37,7 @@ return [
->dateAttribute('suspended_until'),
(new Extend\ApiSerializer(UserSerializer::class))
->mutate(AddUserSuspendAttributes::class),
->attributes(AddUserSuspendAttributes::class),
new Extend\Locales(__DIR__.'/locale'),