src/Controllers/AdministratorsController.php
public function addAdministrators($user_ids)
    {
        $users = Agent::find($user_ids);
        foreach ($users as $user) {
            $user->ticketit_admin = true;
            $user->save();
            $users_list[] = $user->name;
        }

        return $users_list;
    }
public function addAdministrators($user_ids)
    {
        $users = Agent::find($user_ids);
        foreach ($users as $user) {
            $user->ticketit_admin = true;
            $user->save();
            $users_list[] = $user->name;
        }

        return $users_list;
    }
public function addAdministrators ( $ user_ids ) { $ users = Agent :: find ( $ user_ids ) ; foreach ( $ users as $ user ) { $ user -> ticketit_admin = true ; $ user -> save ( ) ; $ users_list [ ] = $ user -> name ; } return $ users_list ; }
Assign users as administrators.

@param $user_ids

@return array
Assign users as administrators .