diff --git a/composer.json b/composer.json index f44892d..4c5c1dc 100644 --- a/composer.json +++ b/composer.json @@ -6,18 +6,18 @@ "type": "project", "require": { "php": "^8.0.2", - "illuminate/auth": "9.*", - "illuminate/console": "9.*", - "illuminate/contracts": "9.*", - "illuminate/database": "9.*", - "illuminate/events": "9.*", - "illuminate/support": "9.*", - "illuminate/view": "9.*" + "illuminate/auth": "^9.0|^10.0", + "illuminate/console": "^9.0|^10.0", + "illuminate/contracts": "^9.0|^10.0", + "illuminate/database": "^9.0|^10.0", + "illuminate/events": "^9.0|^10.0", + "illuminate/support": "^9.0|^10.0", + "illuminate/view": "^9.0|^10.0" }, "require-dev": { "mockery/mockery": "^1.4.4", - "phpunit/phpunit": "^9.5.10", - "orchestra/testbench": "^7.0" + "phpunit/phpunit": "^9.5.10|^10.0", + "orchestra/testbench": "^7.0|^8.0" }, "autoload": { "classmap": [ diff --git a/src/TusUpload.php b/src/TusUpload.php index 75a71ca..6cf2982 100644 --- a/src/TusUpload.php +++ b/src/TusUpload.php @@ -59,18 +59,10 @@ class TusUpload extends Model */ protected $casts = [ 'metadata' => 'array', - ]; - - /** - * The attributes that should be mutated to dates. - * - * @var array - */ - protected $dates = [ - 'created_at', - 'updated_at', - 'cancelled_at', - 'completed_at' + 'created_at' => 'datetime', + 'updated_at' => 'datetime', + 'cancelled_at' => 'datetime', + 'completed_at' => 'datetime', ];