/** * Get all of the clips for the following user of a given user. * * @param User $user * @return Collection */ public function forFollowingUser(User $user) { return Clip::where('user_id', $user->id)->orderBy('created_at', 'asc')->get(); }
public function addToReel($id) { $clip = Clip::findOrFail($id); return view('clips.partials.details', compact('clip')); }