├── .gitattributes ├── .gitignore ├── LaravelCollectiveErrors-banner.png ├── CONTRIBUTING.md ├── src ├── publish │ ├── errors │ │ ├── 500.blade.php │ │ ├── 401.blade.php │ │ ├── 404.blade.php │ │ ├── 419.blade.php │ │ ├── 429.blade.php │ │ ├── 403.blade.php │ │ ├── 503.blade.php │ │ ├── illustrated-layout.blade.php │ │ └── branded-layout.blade.php │ └── svg │ │ ├── laravel.svg │ │ ├── 404.svg │ │ ├── 503.svg │ │ ├── 403.svg │ │ └── 500.svg └── ErrorsServiceProvider.php ├── readme.md ├── composer.json ├── LICENSE └── LICENSE.txt /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | composer.phar 3 | composer.lock 4 | .DS_Store 5 | Thumbs.db 6 | .idea 7 | -------------------------------------------------------------------------------- /LaravelCollectiveErrors-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaravelCollective/errors/HEAD/LaravelCollectiveErrors-banner.png -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Laravel Collective Package Contribution Guide 2 | 3 | Thank you for considering contributing to a Laravel Collective Package! The follow the Laravel contribution guide which can be found in the [Laravel documentation](http://laravel.com/docs/contributions). Please review the entire guide before sending a pull request. 4 | -------------------------------------------------------------------------------- /src/publish/errors/500.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::illustrated-layout') 2 | 3 | @section('code', '500') 4 | @section('title', __('Server Error')) 5 | 6 | @section('image') 7 |
8 |
9 | @endsection 10 | 11 | @section('message', __('Whoops, something went wrong on our servers.')) 12 | -------------------------------------------------------------------------------- /src/publish/errors/401.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::illustrated-layout') 2 | 3 | @section('code', '401') 4 | @section('title', __('Unauthorized')) 5 | 6 | @section('image') 7 |
8 |
9 | @endsection 10 | 11 | @section('message', __('Sorry, you are not authorized to access this page.')) 12 | -------------------------------------------------------------------------------- /src/publish/errors/404.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::illustrated-layout') 2 | 3 | @section('code', '404') 4 | @section('title', __('Page Not Found')) 5 | 6 | @section('image') 7 |
8 |
9 | @endsection 10 | 11 | @section('message', __('Sorry, the page you are looking for could not be found.')) 12 | -------------------------------------------------------------------------------- /src/publish/errors/419.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::illustrated-layout') 2 | 3 | @section('code', '419') 4 | @section('title', __('Page Expired')) 5 | 6 | @section('image') 7 |
8 |
9 | @endsection 10 | 11 | @section('message', __('Sorry, your session has expired. Please refresh and try again.')) 12 | -------------------------------------------------------------------------------- /src/publish/errors/429.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::illustrated-layout') 2 | 3 | @section('code', '429') 4 | @section('title', __('Too Many Requests')) 5 | 6 | @section('image') 7 |
8 |
9 | @endsection 10 | 11 | @section('message', __('Sorry, you are making too many requests to our servers.')) 12 | -------------------------------------------------------------------------------- /src/publish/errors/403.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::illustrated-layout') 2 | 3 | @section('code', '403') 4 | @section('title', __('Forbidden')) 5 | 6 | @section('image') 7 |
8 |
9 | @endsection 10 | 11 | @section('message', __($exception->getMessage() ?: __('Sorry, you are forbidden from accessing this page.'))) 12 | -------------------------------------------------------------------------------- /src/publish/errors/503.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::illustrated-layout') 2 | 3 | @section('code', '503') 4 | @section('title', __('Service Unavailable')) 5 | 6 | @section('image') 7 |
8 |
9 | @endsection 10 | 11 | @section('message', __($exception->getMessage() ?: __('Sorry, we are doing some maintenance. Please check back soon.'))) 12 | -------------------------------------------------------------------------------- /src/ErrorsServiceProvider.php: -------------------------------------------------------------------------------- 1 | publishes([ 17 | __DIR__.'/publish/errors' => resource_path('views/errors'), 18 | __DIR__.'/publish/svg' => public_path('svg'), 19 | ], 'laravel-collective-errors'); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/publish/svg/laravel.svg: -------------------------------------------------------------------------------- 1 | Laravel icon -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | ![LaravelCollective Errors](LaravelCollectiveErrors-banner.png) 2 | 3 | [![Total Downloads](https://poser.pugx.org/LaravelCollective/errors/downloads)](https://packagist.org/packages/laravelcollective/errors) 4 | [![Latest Stable Version](https://poser.pugx.org/LaravelCollective/errors/v/stable.svg)](https://packagist.org/packages/laravelcollective/errors) 5 | [![Latest Unstable Version](https://poser.pugx.org/LaravelCollective/errors/v/unstable.svg)](https://packagist.org/packages/laravelcollective/errors) 6 | [![License](https://poser.pugx.org/LaravelCollective/errors/license.svg)](https://packagist.org/packages/laravelcollective/errors) 7 | 8 | Official documentation for Errors for The Laravel Framework can be found at the [LaravelCollective](http://laravelcollective.com) website. 9 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravelcollective/errors", 3 | "description": "Error pages for the Laravel Framework", 4 | "license": "MIT", 5 | "homepage": "https://laravelcollective.com", 6 | "support": { 7 | "issues": "https://github.com/LaravelCollective/errors/issues", 8 | "source": "https://github.com/LaravelCollective/errors" 9 | }, 10 | "authors": [ 11 | { 12 | "name": "Matt Lantz", 13 | "email": "matt@laravelcollective.com" 14 | } 15 | ], 16 | "require": { 17 | "php": ">=7.1.3", 18 | "laravel/framework": "^6.0|^7.0" 19 | }, 20 | "autoload": { 21 | "psr-4": { 22 | "Collective\\Errors\\": "src/" 23 | } 24 | }, 25 | "extra": { 26 | "branch-alias": { 27 | "dev-master": "1.0-dev" 28 | }, 29 | "laravel": { 30 | "providers": [ 31 | "Collective\\Errors\\ErrorsServiceProvider" 32 | ] 33 | } 34 | }, 35 | "minimum-stability": "dev", 36 | "prefer-stable": true, 37 | "abandoned": true 38 | } 39 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Matt Lantz 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/publish/svg/404.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/publish/svg/503.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/publish/svg/403.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/publish/errors/illustrated-layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @yield('title') 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 458 | 459 | 460 |
461 |
462 |
463 |
464 | @yield('code', __('Oh no')) 465 |
466 | 467 |
468 | 469 |

470 | @yield('message') 471 |

472 | 473 | 474 | 477 | 478 |
479 |
480 | 481 |
482 | @yield('image') 483 |
484 |
485 | 486 | 487 | -------------------------------------------------------------------------------- /src/publish/errors/branded-layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @yield('title') 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 467 | 468 | 469 |
470 |
471 |
472 |
473 | @yield('code', __('Oh no')) 474 |
475 | 476 |
477 | 478 |

479 | @yield('message') 480 |

481 | 482 | 483 | 486 | 487 |
488 |
489 | 490 |
491 |
492 | laravel brand 493 |
494 |
495 |
496 | 497 | 498 | -------------------------------------------------------------------------------- /src/publish/svg/500.svg: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------