src/Controllers/RoleController.php
public function index()
    {
        $roles = $this->roleRepository->createModel()->all();
        $userRoleIds = Sentinel::getUser()->roles()->pluck('id');

        return view('Centaur::roles.index')
            ->with('userRoleIds', $userRoleIds)
            ->with('roles', $roles);
    }
public function index()
    {
        $roles = $this->roleRepository->createModel()->all();
        $userRoleIds = Sentinel::getUser()->roles()->pluck('id');

        return view('Centaur::roles.index')
            ->with('userRoleIds', $userRoleIds)
            ->with('roles', $roles);
    }
public function index ( ) { $ roles = $ this -> roleRepository -> createModel ( ) -> all ( ) ; $ userRoleIds = Sentinel :: getUser ( ) -> roles ( ) -> pluck ( 'id' ) ; return view ( 'Centaur::roles.index' ) -> with ( 'userRoleIds' , $ userRoleIds ) -> with ( 'roles' , $ roles ) ; }
Display a listing of the roles.

@return \Illuminate\Http\Response
Display a listing of the roles .