src/Http/Requests/Admin/Posts/CreatePostRequest.php
protected function sanitize()
    {
        return [
            'slug'      => Str::slug($this->get($this->has('slug') ? 'slug' : 'title', '')),
            'seo_title' => $this->get(empty($this->get('seo_title')) ? 'title' : 'seo_title'),
        ];
    }
protected function sanitize()
    {
        return [
            'slug'      => Str::slug($this->get($this->has('slug') ? 'slug' : 'title', '')),
            'seo_title' => $this->get(empty($this->get('seo_title')) ? 'title' : 'seo_title'),
        ];
    }
protected function sanitize ( ) { return [ 'slug' => Str :: slug ( $ this -> get ( $ this -> has ( 'slug' ) ? 'slug' : 'title' , '' ) ) , 'seo_title' => $ this -> get ( empty ( $ this -> get ( 'seo_title' ) ) ? 'title' : 'seo_title' ) , ] ; }
Sanitize the inputs.

@return array
Sanitize the inputs .