Tell me please, how save model data only to session, without metadata and other data?
$user = Users::findFirst($user_id); $session->set('user', $user);
$user contains many unnecessary to store information. I need only the field values from the model. And it takes up much space.
Sorry for my english dialect :)