public function extend($hours = null)
    {
        $hours = is_null($hours) ? 24 : $hours;

        $this->update([
            'expires_at' => Carbon::now()->addHours($hours),
        ]);
    }
public function extend($hours = null)
    {
        $hours = is_null($hours) ? 24 : $hours;

        $this->update([
            'expires_at' => Carbon::now()->addHours($hours),
        ]);
    }
public function extend ( $ hours = null ) { $ hours = is_null ( $ hours ) ? 24 : $ hours ; $ this -> update ( [ 'expires_at' => Carbon :: now ( ) -> addHours ( $ hours ) , ] ) ; }
Extend the expiration of the token.

@param null|int $hours
Extend the expiration of the token .