add role for admin section

This commit is contained in:
2018-11-10 14:47:15 -06:00
parent a65f902d7d
commit 4efd174c6b
2 changed files with 1 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ class AdminController extends Controller
DB::table('user_roles')->where(['character_id' => $character->character_id])->delete();
//Insert the new role into the database
DB::table('user_roles')->insert([
'character_id' => $characer->character->id,
'character_id' => $character->character->id,
'role'=> $role,
]);
//Return the view and the message of user updated