/** * Get post and it * * @param string $postId * @return \App\Eloquent\Post */ public function getPost($postId = '') { //Return post based on Id return $this->post->findOrFail($postId); }