diff --git a/app/User.php b/app/User.php index 30b50230..086e4b0d 100644 --- a/app/User.php +++ b/app/User.php @@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiTokens; -use NotificationChannels\Expo\ExpoPushToken; use NotificationChannels\WebPush\HasPushSubscriptions; class User extends Authenticatable @@ -46,6 +45,7 @@ class User extends Authenticatable 'last_active_at', 'register_source', 'expo_token', + 'notify_enabled', 'notify_like', 'notify_follow', 'notify_mention', diff --git a/database/migrations/2024_09_18_093322_add_notify_shares_to_users_table.php b/database/migrations/2024_09_18_093322_add_notify_shares_to_users_table.php new file mode 100644 index 00000000..54225d46 --- /dev/null +++ b/database/migrations/2024_09_18_093322_add_notify_shares_to_users_table.php @@ -0,0 +1,28 @@ +boolean('notify_enabled')->default(false); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('notify_enabled'); + }); + } +};