/** * Get the roles for a select html input * @return array */ public function getRolesForSelect() { $roles = new Role(); $rolesSelect = []; foreach ($roles->all() as $role) { $rolesSelect[$role->id] = $role->display_name; } return $rolesSelect; }
/** * Get the roles for a select html input * @return array */ public function getRolesForSelect() { $roles = new Role(); $rolesSelect = []; foreach ($roles->all() as $role) { $rolesSelect[$role->id] = $role->display_name; } return $rolesSelect; }