| @@ 28-37 (lines=10) @@ | ||
| 25 | /** |
|
| 26 | * @return string |
|
| 27 | */ |
|
| 28 | public function getDefaultFrom() |
|
| 29 | { |
|
| 30 | if (! $this->defaultFrom) { |
|
| 31 | $this->defaultFrom = Carbon::now(); |
|
| 32 | } |
|
| 33 | ||
| 34 | return $this->defaultFrom instanceof \DateTime |
|
| 35 | ? $this->defaultFrom->format(config('sleeping_owl.dateFormat', $this->getPickerFormat())) |
|
| 36 | : $this->defaultFrom; |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * @param string $defaultFrom |
|
| @@ 54-63 (lines=10) @@ | ||
| 51 | /** |
|
| 52 | * @return string |
|
| 53 | */ |
|
| 54 | public function getDefaultTo() |
|
| 55 | { |
|
| 56 | if (! $this->defaultTo) { |
|
| 57 | $this->defaultTo = Carbon::now(); |
|
| 58 | } |
|
| 59 | ||
| 60 | return $this->defaultTo instanceof \DateTime |
|
| 61 | ? $this->defaultTo->format(config('sleeping_owl.dateFormat', $this->getPickerFormat())) |
|
| 62 | : $this->defaultTo; |
|
| 63 | } |
|
| 64 | ||
| 65 | /** |
|
| 66 | * @param string $defaultTo |
|