protected function getPageRule()
    {
        $existsRule = Rule::exists($this->getTablePrefix().'pages', 'id')->using(function ($query) {
            if ($this->has('locale'))
                $query->where('locale', $this->get('locale', config('app.locale')));
        });

        return ['required', 'integer', $existsRule];
    }
protected function getPageRule()
    {
        $existsRule = Rule::exists($this->getTablePrefix().'pages', 'id')->using(function ($query) {
            if ($this->has('locale'))
                $query->where('locale', $this->get('locale', config('app.locale')));
        });

        return ['required', 'integer', $existsRule];
    }
protected function getPageRule ( ) { $ existsRule = Rule :: exists ( $ this -> getTablePrefix ( ) . 'pages' , 'id' ) -> using ( function ( $ query ) { if ( $ this -> has ( 'locale' ) ) $ query -> where ( 'locale' , $ this -> get ( 'locale' , config ( 'app.locale' ) ) ) ; } ) ; return [ 'required' , 'integer' , $ existsRule ] ; }
Get the page validation rule.

@return array
Get the page validation rule .