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 ]); } public function all() { $tweets = Tweet::where('mission_id', 0) ->orderBy('tweet_date', 'desc') ->get(); return view('all-tweets', [ 'tweets' => $tweets ]); } }