add role for admin section
This commit is contained in:
@@ -27,7 +27,7 @@ class AdminController extends Controller
|
|||||||
DB::table('user_roles')->where(['character_id' => $character->character_id])->delete();
|
DB::table('user_roles')->where(['character_id' => $character->character_id])->delete();
|
||||||
//Insert the new role into the database
|
//Insert the new role into the database
|
||||||
DB::table('user_roles')->insert([
|
DB::table('user_roles')->insert([
|
||||||
'character_id' => $characer->character->id,
|
'character_id' => $character->character->id,
|
||||||
'role'=> $role,
|
'role'=> $role,
|
||||||
]);
|
]);
|
||||||
//Return the view and the message of user updated
|
//Return the view and the message of user updated
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
'Guest' => 'Guest',
|
'Guest' => 'Guest',
|
||||||
'User' => 'User',
|
'User' => 'User',
|
||||||
'Admin' => 'Admin',
|
'Admin' => 'Admin',
|
||||||
'SuperUser' => 'SuperUser',
|
|
||||||
], 'None') }}
|
], 'None') }}
|
||||||
</div>
|
</div>
|
||||||
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
|
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user