예제 #1
0
 /**
  * Выводит список пользователей
  */
 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');
 }
예제 #2
0
 public function index()
 {
     $operators = Operator::all();
     $gateways = Gateway::all();
     return view('gateway.index')->with('operators', $operators)->with('gateways', $gateways);
 }