|
@@ -166,7 +166,13 @@ class Istat extends Component
|
|
|
|
|
|
|
|
public $title = 'ISTAT';
|
|
public $title = 'ISTAT';
|
|
|
|
|
|
|
|
- public $from = '2023-11-01', $to;
|
|
|
|
|
|
|
+ public $from, $to;
|
|
|
|
|
+
|
|
|
|
|
+ public function mount()
|
|
|
|
|
+ {
|
|
|
|
|
+ // Initialize $from with today's date in Y-m-d format
|
|
|
|
|
+ $this->from = now()->format('Y-m-d');
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
protected $rules = [
|
|
protected $rules = [
|
|
|
'from' => 'required',
|
|
'from' => 'required',
|