diff --git a/composer.json b/composer.json index fdc1844..d6ee7c1 100644 --- a/composer.json +++ b/composer.json @@ -21,8 +21,8 @@ } ], "require": { - "php" : "^7.0", - "illuminate/support": "~5.3.0 || ~5.4.0 || ~5.5.0 || 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8" + "php" : "^8.0", + "illuminate/support": "~5.3.0 || ~5.4.0 || ~5.5.0 || 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 || ^9 || ^10" }, "autoload": { "psr-4": { diff --git a/migrations/create_watch_table.php b/migrations/create_watch_table.php index 0ec880f..0cf4074 100644 --- a/migrations/create_watch_table.php +++ b/migrations/create_watch_table.php @@ -14,7 +14,7 @@ public function up() Schema::create('watch', function (Blueprint $table) { $table->increments('id'); $table->morphs('watchable'); - $table->bigInteger('user_id')->unsigned()->index(); + $table->uuid('user_id')->index(); $table->timestamps(); $table->unique(['watchable_id', 'watchable_type', 'user_id'], 'watch_user_unique');