예제 #1
0
 public function tweets($pagination = 100)
 {
     return Tweet::select('tweets.user_id', 'users.name', 'users.username', 'tweets.message', 'tweets.created_at', 'tweets.updated_at')->join('users', 'tweets.user_id', '=', 'users.id')->where('user_id', $this->id)->orderBy('created_at', 'desc')->paginate($pagination);
 }