public function setExpiredAtAttribute($value): void
    {
        if (!is_null($value) && !$value instanceof Carbon) {
            $value = Carbon::parse($value);
        }

        $this->attributes['expired_at'] = $value;
    }
public function setExpiredAtAttribute($value): void
    {
        if (!is_null($value) && !$value instanceof Carbon) {
            $value = Carbon::parse($value);
        }

        $this->attributes['expired_at'] = $value;
    }
public function setExpiredAtAttribute ( $ value ) : void { if ( ! is_null ( $ value ) && ! $ value instanceof Carbon ) { $ value = Carbon :: parse ( $ value ) ; } $ this -> attributes [ 'expired_at' ] = $ value ; }
Expired timestamp mutator.

@param \Illuminate\Support\Carbon|string $value
@return void
Expired timestamp mutator .