Exemplo n.º 1
0
 public function profile()
 {
     $this->middleware('auth');
     $profile = User::with('article')->where('id', '=', Auth::id())->first();
     return view('home.profile', ['details' => $profile]);
 }