public function editOwnPost($user, $post) {
		$post = $this->getModel(\App\Post::class, $post);  // helper method for geting model

		return $user->id === $post->user_id;
	}
public function editOwnPost($user, $post) {
		$post = $this->getModel(\App\Post::class, $post);  // helper method for geting model

		return $user->id === $post->user_id;
	}
public function editOwnPost ( $ user , $ post ) { $ post = $ this -> getModel ( \ App \ Post :: class , $ post ) ; // helper method for geting model return $ user -> id === $ post -> user_id ; }
Methods which checking permissions.
Methods should be present only if additional checking needs.
Methods which checking permissions . Methods should be present only if additional checking needs .