chellmann / sad-server
A Laravel package that replaces the default 404 page with a terminal animation featuring a depressed web server.
Requires
- php: ^8.2
- illuminate/support: ^11.0|^12.0|^13.0
README
A Laravel package that replaces the default 404 error page with a terminal animation featuring a depressed web server.
Inspired by wachwerk.de/404. Original text by Sebastian Lübcke, circa 2000.
Installation
composer require chellmann/sad-server
That's it. The package auto-discovers and immediately replaces your 404 page.
Configuration
Publish the config to customize the terminal title, typing speed, or messages:
php artisan vendor:publish --tag=sad-server-config
This creates config/sad-server.php where you can change:
title— The terminal window title bar texttype_speed— Typing speed in milliseconds per characterstrings— Array of messages the server types out
Customizing the View
php artisan vendor:publish --tag=sad-server-views
This publishes the Blade template to resources/views/vendor/sad-server/errors/404.blade.php.
How It Works
The package registers a renderable callback for NotFoundHttpException. HTML requests get the terminal 404 page, JSON/API requests are unaffected.
License
MIT