Skip to content

Articles about laravel

Thoughts on software development, games, design, and the things I learn along the way.

Advertisement Talescape

Introducing Laravel Teapot

A few years ago I wrote about a simple idea: instead of maintaining huge fail2ban regexes for every weird scanner path, let your Laravel app return a very specific HTTP status code when a request clearly looks like automated probing, then let fail2ban ban the IP based on that status code.

Using Laravel & Statamic without Cookies

Everybody knows them, nobody likes them: cookie banners. They are only required if technically unnecessary cookies are to be used. However, opinions differ when cookies are necessary. Obviously, the safest way to go is without cookies at all. How to disable cookies in Laravel and what to look out for, is explained in this article.

How to Log 404 Page Not Found Errors in Laravel

How to Log 404 Page Not Found Errors in Laravel

Logging Page Not Found errors is pretty simple in Laravel. Every Laravel installation has an exceptions handler used to display error messages. You can just edit the render method of this class and add a log message for 404 status codes.