New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

enniosousa/server-error-pages

Laravel server-side error pages
5,597 16

Larablocks Analysis

enniosousa/server-error-pages works with Laravel 5, 6 and 7 (latest release v1.1.0, Jan 22, 2022), all past end of life (the last on Sep 6, 2022): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, 6 and 7, past end of life since Sep 6, 2022
  • No release in the last 12 months (last: Jan 22, 2022)
  • 1 downloads a month (needs 10,000)
  • 16 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jan 22, 2022.
  • No releases in the last 12 months.
  • First released: Feb 6, 2018.
  • Monthly downloads: 1.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.

Install
composer require enniosousa/server-error-pages
Latest Version:v1.1.0
Laravel:5 · 6 · 7
License:MIT
Last Updated:Jan 22, 2022
Links: GitHub  ·  Packagist
Maintainer: enniosousa

Laravel Server Error Pages

Latest Stable Version Total Downloads License

Table of Contents

Errors Avaliables

  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found
  • 405 Method not allowed
  • 419 Authentication Timeout
  • 429 Too Many Requests
  • 500 Internal Server Error
  • 502 Bad Gateway
  • 503 Service Unavailable
  • 504 Gateway Timeout
  • Maintenance (used when php artisan down)

Languages Avaliables

Installation

Step 1:Install package via Composer

composer require enniosousa/server-error-pages

Step 2: If you are using Laravel 5, include the service provider within your config/app.php file.

'providers' => [
    EnnioSousa\ServerErrorPages\ServerErrorPagesServiceProvider::class,
];

Step 3: Publish vendor provider

php artisan vendor:publish --provider="EnnioSousa\ServerErrorPages\ServerErrorPagesServiceProvider"

How to Create Custom Error Pages

Step 1: Create new empty file named with HTTP code error at folder resources/views/errors like specified in Laravel docs.

Step 2: Put the following content in the file you just created.

@include('server-error-pages::template', compact($exception))

Step 3: Add to file resrouces/lang/vendor/en/server-error-pages.php custom messages following the template:

<?php
return [
  '000' => [
          'title' => "000 HTTP ERROR",
          'description' => "Brief description",
          'icon' => "fa fa-cogs green", //icon color options are: green, orange or red
          'button' => [
              'name' => "Try This Page Again",
              'link_to' => "reload", //options are: reload, home or previous
          ],
          'why' => [
              'title' => "What happened?",
              'description' => "Error description"
          ],
          'what_do' => [
              'title' => "What can I do?",
              'visitor' => [
                  'title' => "If you're a site visitor",
                  'description' => "Explanation."
              ],
              'owner' => [
                  'title' => "If you're the site owner",
                  'description' => "Explanation"
              ],
          ],
      ],
];

Custom Error Messages

Use abort() Laravel helper

abort(500, "The server is broken");
abort(403, "You user role does not heave permission to see that.");

Or

php artisan down --message="This application is update process. Wait 10 minutes and try again." --retry=600

Related Packages

nwidart/httpstatus

HttpStatus is a small package that adds pretty error pages.

459 17
owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

46,608,560 3,475
mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

23,909,128 1,976
kyslik/column-sortable

Package for handling column sorting in Laravel 11-13

6,787,773 643
mews/captcha

Laravel 5/6/7/8/9/10/11/12 Captcha Package

6,446,198 2,589

Version History

Version Released PHP Laravel License
v1.1.0 ^5.6.20|5.7.*|5.8.*|6.*|7.* MIT
v1.0.6 5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.* MIT
v1.0.5 5.5.*|5.6.*|5.7.*|5.8.* MIT
v1.0.4 5.5.*|5.6.*|5.7.* MIT
v1.0.2 >=7.0.0 5.5.* Apache-2.0