/** * Выводит список пользователей */ public function getUserslist() { $this->page->title = 'Пользователи'; $this->page->desc = 'Список всех пользователей'; $role = Sentinel::findRoleBySlug('user'); $this->data['users'] = $role->users()->with('roles')->get(); $this->data['operators'] = Operator::all(); return $this->render('user.userlist'); }
public function index() { $operators = Operator::all(); $gateways = Gateway::all(); return view('gateway.index')->with('operators', $operators)->with('gateways', $gateways); }