Povilas Brilius

Essentially, I have managed to perform Red Beans installation on the plain dry model objects like planned —

return ['id' => $user->id,'email' => $user->email,'notes' => $user->countOwn('note'),'links' => [['rel' => 'self','uri' => '/users/' . $user->id,],],];