Bug in the Mongor\Model::_first() method
Opened this issue · 0 comments
RuslanGetmansky commented
Mongor\Model::_first() returns object with empty attributes instead of NULL when no document is found. As a result there is an exception in mongoauth.php (line 39) when non-existing user tries to log in.
Corresponding method Laravel\Database\Eloquent\Query::first() returns NULL in the same situation.