public function autoFill()
    {
        // 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('now')->{$dateFormatMethod}();
        }

        if (null === $this->summary) {
            $summary = strip_tags($this->content);

            $this->summary = substr($summary, 0, 144) . '...';
        }
    }
public function autoFill()
    {
        // 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('now')->{$dateFormatMethod}();
        }

        if (null === $this->summary) {
            $summary = strip_tags($this->content);

            $this->summary = substr($summary, 0, 144) . '...';
        }
    }
public function autoFill ( ) { // 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 ( 'now' ) -> { $ dateFormatMethod } ( ) ; } if ( null === $ this -> summary ) { $ summary = strip_tags ( $ this -> content ) ; $ this -> summary = substr ( $ summary , 0 , 144 ) . '...' ; } }
Fill the attributes that can be auto-generated

@return void
Fill the attributes that can be auto - generated