From 06eaa1b46404c19a21d3e9c2f498991d4081215f Mon Sep 17 00:00:00 2001 From: Torsten Date: Tue, 21 Jan 2020 09:47:34 +0100 Subject: [PATCH] add role to users --- motorradig/.idea/workspace.xml | 5 ++- .../2020_01_21_084547_add_role_to_users.php | 32 +++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 motorradig/database/migrations/2020_01_21_084547_add_role_to_users.php diff --git a/motorradig/.idea/workspace.xml b/motorradig/.idea/workspace.xml index 240a645..bb9b8b7 100644 --- a/motorradig/.idea/workspace.xml +++ b/motorradig/.idea/workspace.xml @@ -2,9 +2,8 @@ - + - diff --git a/motorradig/database/migrations/2020_01_21_084547_add_role_to_users.php b/motorradig/database/migrations/2020_01_21_084547_add_role_to_users.php new file mode 100644 index 0000000..f2bb4f4 --- /dev/null +++ b/motorradig/database/migrations/2020_01_21_084547_add_role_to_users.php @@ -0,0 +1,32 @@ +string('role')->default('GUEST'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + // + }); + } +}