I am using the Laravel boilerplate. I'm trying to get the user_id
of the signed in user. I am getting the following error:
Class 'App\Http\Controllers\Frontend\Auth' not found
Here is the call
$user = Auth::user();
然后我try 使用以下方法获取id:
$user->id
What am I missing?