$user_id = auth()->user()->id; $user = User::find($user_id); return view('dashboard')->with('posts', $user->posts);
Pro tip: use ```triple backticks around text``` to write in code fences