app/Services/TitleValidator/PageTitleValidator.php
/**
     * Check that the given page title is unique for storing.
     * 
     *@return boolean
     */
Check that the given page title is unique for storing.

@return boolean
Check that the given page title is unique for storing . @return boolean
public function isTitleUniqueForStoring()
    {
        $sameTitle = Page::Where('title', $this->validData['title'])->get();
        if($sameTitle->count() > 0)
        {
            return false;
        }
        return true;
    }
public function isTitleUniqueForStoring ( ) { $ sameTitle = Page :: Where ( 'title' , $ this -> validData [ 'title' ] ) -> get ( ) ; if ( $ sameTitle -> count ( ) > 0 ) { return false ; } return true ; }
Check that the given page title is unique for storing.
Check that the given page title is unique for storing .