// function in model public function hasManyFunction() { return $this->hasMany('AppModelsmodelName', 'targetedId'); } // get data with hasMany relation in controller $data = Post::with('hasManyFunction')->find(1)->;