diff --git a/app/User.php b/app/User.php index 3b2b251..ec9c4d7 100644 --- a/app/User.php +++ b/app/User.php @@ -20,6 +20,7 @@ class User extends Authenticatable 'is_protected', 'accept_analytics', 'display_name', 'description', 'twitter_id', 'twitter_name', + 'private_likes', ]; /** diff --git a/database/migrations/2019_04_09_224506_add_private_likes_to_users.php b/database/migrations/2019_04_09_224506_add_private_likes_to_users.php new file mode 100644 index 0000000..c2147bf --- /dev/null +++ b/database/migrations/2019_04_09_224506_add_private_likes_to_users.php @@ -0,0 +1,32 @@ +boolean('private_likes')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('private_likes'); + }); + } +}