From 9fbaf1614ff374a9222d9f559c4b0078d4186b56 Mon Sep 17 00:00:00 2001 From: Rodrigo Castro Date: Wed, 21 Oct 2026 17:07:12 -0300 Subject: [PATCH] =?UTF-8?q?feat(design):=20cria=20p=C3=A1ginas=20403=20e?= =?UTF-8?q?=20404=20customizadas=20com=20a=20identidade=20do=20site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/views/errors/403.blade.php | 41 +++++++++++++++++++ .../resources/views/errors/404.blade.php | 38 +++++++++++++++++ site_novo/tests/Feature/ErrorPagesTest.php | 20 +++++++++ 3 files changed, 99 insertions(+) create mode 100644 site_novo/resources/views/errors/403.blade.php create mode 100644 site_novo/resources/views/errors/404.blade.php create mode 100644 site_novo/tests/Feature/ErrorPagesTest.php diff --git a/site_novo/resources/views/errors/403.blade.php b/site_novo/resources/views/errors/403.blade.php new file mode 100644 index 0000000..6c7a681 --- /dev/null +++ b/site_novo/resources/views/errors/403.blade.php @@ -0,0 +1,41 @@ + + + +
+
+
+

Erro 403

+

+ Acesso
restrito. +

+

+ Você não tem permissão pra acessar esta área. Se acha que isso é um engano, + fala com quem administra a comunidade. +

+ + +
+ + +
+
+ + +
diff --git a/site_novo/resources/views/errors/404.blade.php b/site_novo/resources/views/errors/404.blade.php new file mode 100644 index 0000000..cb5bac5 --- /dev/null +++ b/site_novo/resources/views/errors/404.blade.php @@ -0,0 +1,38 @@ + + + +
+
+
+

Erro 404

+

+ Essa página
se perdeu no mar. +

+

+ Não encontramos o que você procurava. O endereço pode ter mudado + ou nunca existiu por aqui. +

+ + +
+ + +
+
+ + +
diff --git a/site_novo/tests/Feature/ErrorPagesTest.php b/site_novo/tests/Feature/ErrorPagesTest.php new file mode 100644 index 0000000..c765e2d --- /dev/null +++ b/site_novo/tests/Feature/ErrorPagesTest.php @@ -0,0 +1,20 @@ +create(); + + $this->actingAs($member, 'web') + ->get('/admin') + ->assertForbidden() + ->assertSee('Acesso restrito') + ->assertSee('Voltar para o início'); +}); + +test('a guest hitting an unknown route sees the branded 404 page', function () { + $this->get('/rota-que-nao-existe') + ->assertNotFound() + ->assertSee('Essa página') + ->assertSee('Voltar para o início'); +});