Esempio n. 1
0
 /**
  * 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();
 }
Esempio n. 2
0
 public function addToReel($id)
 {
     $clip = Clip::findOrFail($id);
     return view('clips.partials.details', compact('clip'));
 }