merge([ 'period' => $this->input('period') ? $this->input('period') : 'day', 'start' => $this->input('start') ? Carbon::create($this->input('start')) : now()->modify('-1 year'), 'end' => $this->input('end') ? Carbon::create($this->input('end')) : now(), ]); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return []; } }