app/Http/Controllers/Admin/UsuarioController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $listaPaginas = json_encode([
            ["titulo" => "Admin", "url" => route('admin')],
            ["titulo" => "Lista de Usuários", "url" => ''],
        ]);
        $listaModelo = User::select('id', 'name','email')->paginate(5);
        return view('admin.usuarios.index', compact('listaPaginas', 'listaModelo'));
    }
public function index ( ) { $ listaPaginas = json_encode ( [ [ " titulo " => " Admin " , " url " => route ( 'admin' ) ] , [ " titulo " => " Lista de Usuários" , u rl" >  '] , ] ) ; $ listaModelo = User :: select ( 'id' , 'name' , 'email' ) -> paginate ( 5 ) ; return view ( 'admin.usuarios.index' , compact ( 'listaPaginas' , 'listaModelo' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .