middleware('auth');
}
/**
* Show the application dashboard.
*
* @return \Illuminate\Contracts\Support\Renderable
*/
public function index()
{
$postagens = Postagem::orderBy('id', 'desc')->get();
$categorias = Categoria::orderBy('id', 'desc')->get();
$autores = User::orderBy('id', 'desc')->get();
return view('home', ['postagens' => $postagens, 'categorias' => $categorias, 'autores' => $autores]);
}
}