app/Http/Controllers/Admin/ArtigoController.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 Artigos", "url" => ''],
        ]);
        $artigos = new Artigo();
        $listaArtigos = $artigos->listaArtigos(5);
        return view('admin.artigos.index', compact('listaPaginas', 'listaArtigos'));
    }
public function index ( ) { $ listaPaginas = json_encode ( [ [ " titulo " => " Admin " , " url " => route ( 'admin' ) ] , [ " titulo " => " Lista de Artigos " , " url " => '' ] , ] ) ; $ artigos = new Artigo ( ) ; $ listaArtigos = $ artigos -> listaArtigos ( 5 ) ; return view ( 'admin.artigos.index' , compact ( 'listaPaginas' , 'listaArtigos' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .