Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions resources/assets/images/errors/402.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/lang/en/errors.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
'heading' => 'Oops, something went wrong ...',
'message' => 'Please try again or get in touch if the issue persists.',
'401' => 'Unauthorized',
'402' => 'Payment Required',
'403' => 'Forbidden',
'403_heading' => 'Oops, this is a restricted area!',
'403_message' => 'You don\'t have the proper security clearance to access this part of the site.',
Expand Down
1 change: 1 addition & 0 deletions resources/views/errors/402.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@extends('errors::layout', ['code' => 402])
1 change: 1 addition & 0 deletions resources/views/errors/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@php
$code = match ($code) {
401 => 401,
402 => 402,
403 => 403,
404 => 404,
419 => 419,
Expand Down
2 changes: 1 addition & 1 deletion tests/UserInterface/Exceptions/HandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

$this->assertStringContainsString('<title>'.trans('ui::errors.500').' | Laravel</title>', $response->getContent());
})->with([
[402, 'Oops, something went wrong'],
[408, 'Oops, something went wrong'],
[501, 'Oops, something went wrong'],
[519, 'Oops, something went wrong'],
Expand All @@ -38,6 +37,7 @@
$this->assertStringContainsString('<title>'.trans("ui::errors.${errorCode}").' | Laravel</title>', $response->getContent());
})->with([
[401, 'Oops, something went wrong'],
[402, 'Payment Required'],
[403, 'Oops, this is a restricted area!'],
[404, 'Oops, something went wrong'],
[419, 'Oops, something went wrong'],
Expand Down