Changed date casting for Laravel 10.
This commit is contained in:
		| @@ -11,8 +11,6 @@ class Reconciliation extends Model | ||||
|  | ||||
|     protected $table = 'reconciliations'; | ||||
|  | ||||
|     protected $dates = ['deleted_at', 'started_at', 'ended_at']; | ||||
|  | ||||
|     /** | ||||
|      * Attributes that should be mass-assignable. | ||||
|      * | ||||
| @@ -30,6 +28,8 @@ class Reconciliation extends Model | ||||
|         'reconciled'        => 'boolean', | ||||
|         'transactions'      => 'array', | ||||
|         'deleted_at'        => 'datetime', | ||||
|         'started_at'        => 'datetime', | ||||
|         'ended_at'          => 'datetime', | ||||
|     ]; | ||||
|  | ||||
|     /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user