I've been using this:
$query = $this->job->where('user_id', \Auth::user()->id)->get();
or
$query = $this->job->where('user_id', $this->request()->user()->id)->get();
But, by using any of these methods, my sessions seem to randomly expire, so it logs users out at random.
Is there a better, more efficient way to get user info to run in a query?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community