public function lastOfMonth($dayOfWeek = null) { $day = $dayOfWeek === null ? 'day' : static::$days[$dayOfWeek]; return $this->modify("last {$day} of this month, midnight"); }