Maintenance
This commit is contained in:
@@ -48,6 +48,7 @@ class MstPenggunaController extends Controller
|
||||
$user->roles()->detach();
|
||||
//$user->removeRole($requestAll["opt_role"]);
|
||||
$user->assignRole($requestAll["opt_role"]);
|
||||
app()->make(\Spatie\Permission\PermissionRegistrar::class)->forgetCachedPermissions();
|
||||
|
||||
return redirect()->route('users.index')
|
||||
->with('success','User berhasil dibuat.');
|
||||
@@ -80,6 +81,7 @@ class MstPenggunaController extends Controller
|
||||
$user->roles()->detach();
|
||||
// $user->removeRole($requestAll["opt_role"]);
|
||||
$user->assignRole($requestAll["opt_role"]);
|
||||
app()->make(\Spatie\Permission\PermissionRegistrar::class)->forgetCachedPermissions();
|
||||
|
||||
return redirect()->route('users.index')
|
||||
->with('success','User berhasil diubah!');
|
||||
|
||||
Reference in New Issue
Block a user