Wykorzystuje tam Dingoapi i mam problem z update
$user = User::where('email', 'doc@doc.pl')->first(); $user->password = 'secret1234'; $user->save();
Updating the "createdAt" attribute is not allowed.
vendor/specialtactics/l5-api/src/Models/RestfulModel.php ..... // Disallow updating immutable attributes // For each immutable attribute, check if they have changed foreach ($model->immutableAttributes as $attributeName) { if ($model->getOriginal($attributeName) != $model->getAttribute($attributeName)) { throw new BadRequestHttpException('Updating the "'.camel_case($attributeName).'" attribute is not allowed.'); } } }
Pomoże ktoś? nie wiem w czym jest problem...