model = $model; } public function findByUser($user_id) { return $this->newQuery()->where('user_id', $user_id)->get(); } }