update notistamatkontrak

This commit is contained in:
Nur Izzati Zulkifli
2022-05-17 11:44:59 +08:00
parent d49efd690c
commit 79d00ab131
8 changed files with 207 additions and 22 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ class PenggunaController extends Controller
public function index()
{
// $alluser = User::all();
$alluser = User::with('roles')->get();
$allroles = Role::all()->pluck('name');
$alluser = User::with('roles')->orderBy('id')->get();
$allroles = Role::all();
$caw = Cawangan::all();
$user = User::with('roles')->first();
$userroles = $user->getRoleNames()->toArray();