public function prepare()
    {
        // The date format method to use with Carbon to convert the dates
        $dateFormatMethod = 'to' . strtolower($this->format) . 'String';

        if (null !== $this->pubDate) {
            $this->pubDate = Carbon::parse($this->pubDate)->{$dateFormatMethod}();
        }

        if (null !== $this->updated) {
            $this->updated = Carbon::parse($this->updated)->{$dateFormatMethod}();
        }

        $this->title = strip_tags($this->title);

        $this->autoFill();
    }
public function prepare()
    {
        // The date format method to use with Carbon to convert the dates
        $dateFormatMethod = 'to' . strtolower($this->format) . 'String';

        if (null !== $this->pubDate) {
            $this->pubDate = Carbon::parse($this->pubDate)->{$dateFormatMethod}();
        }

        if (null !== $this->updated) {
            $this->updated = Carbon::parse($this->updated)->{$dateFormatMethod}();
        }

        $this->title = strip_tags($this->title);

        $this->autoFill();
    }
public function prepare ( ) { // The date format method to use with Carbon to convert the dates $ dateFormatMethod = 'to' . strtolower ( $ this -> format ) . 'String' ; if ( null !== $ this -> pubDate ) { $ this -> pubDate = Carbon :: parse ( $ this -> pubDate ) -> { $ dateFormatMethod } ( ) ; } if ( null !== $ this -> updated ) { $ this -> updated = Carbon :: parse ( $ this -> updated ) -> { $ dateFormatMethod } ( ) ; } $ this -> title = strip_tags ( $ this -> title ) ; $ this -> autoFill ( ) ; }
Validate, auto-fill and sanitize the entry

@return void
Validate auto - fill and sanitize the entry