id) ->where('processed', 1) ->where('accepted', 1) ->orderBy('tweet_date', 'desc')->get(); return view('mission-tweets', [ 'mission' => $mission, 'tweets' => $tweets ]); } public function team(Team $team) { $tweets = Tweet::where('team_id', $team->id) ->where('processed', 1) ->where('accepted', 1) ->orderBy('tweet_date', 'desc')->get(); return view('team-tweets', [ 'team' => $team, 'tweets' => $tweets ]); } }