You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per a discussion on Discord, 2018-09-27 11:47AM EST, @poppabear8883 noted the following observations:
the more i look at that method the more i want to move that logic into the IsProfilable
so that it looks more like: $this->createProfile($model, $data);
and
public function createProfile($model, array $data)
{
$this->profilable()->create([
'moniker' => $data['moniker'],
'city' => $data['city'] ?? null,
...
]);
}
i much rather have those null coalesce ops once and not on every repository that uses the IsProfilable trait
and i am wondering if we can have a more fluent api with the repositories create method
We should investigate further and make the appropriate changes if necessary.
The text was updated successfully, but these errors were encountered:
Per a discussion on Discord, 2018-09-27 11:47AM EST, @poppabear8883 noted the following observations:
We should investigate further and make the appropriate changes if necessary.
The text was updated successfully, but these errors were encountered: