Answer the question
In order to leave comments, you need to log in
How to make Sentinel friends with your relations?
To work with users, namely for roles and permissions, I installed the Cartalyst\Sentinel package on Laravel.
Before that, I used the standard User model to work with users, for which I already managed to make several relationships of the form:
public function garageBuy()
{
return $this->hasMany('App\Models\Offers\GarageBuy')->orderBy('id', 'desc');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question