← Back to knowledge

Laravel

Setting process priority for Laravel Horizon workers

Laravel Horizon lets you set the Linux nice value for worker processes, giving them more or less CPU scheduling priority.

24 June 2026 Laravel

CSRF token mismatch in Laravel

A CSRF token mismatch means Laravel rejected a request because its token was missing, wrong, or expired. It is the same protection behind the 419 page, here is how to send the token correctly.

23 June 2026 Laravel

MySQL 1071: Specified key was too long (Laravel migration)

This migration error happens on older MySQL with the utf8mb4 charset, where indexed string columns exceed the index size limit. The fix is a one-line default in your service provider.

23 June 2026 Laravel

Laravel failed to open stream: Permission denied

A blank page or 500 error right after deploying is almost always a permission problem on the storage or bootstrap/cache directory. Here is how to fix the ownership properly.

23 June 2026 Laravel

Target class does not exist in Laravel

This error means Laravel cannot resolve a controller or class you referenced in a route or container binding. Almost always a namespace, typo or autoload issue.

23 June 2026 Laravel

No application encryption key has been specified

This Laravel error appears when the APP_KEY is missing. It is one of the first things you hit after cloning a project. The fix is a single artisan command.

23 June 2026 Laravel

Vite manifest not found in Laravel

This error means Laravel cannot find your compiled frontend assets. Either the dev server is not running, or you never built your assets for production.

23 June 2026 Laravel

Redis connection refused in Laravel

When Laravel uses Redis for cache, sessions or queues, a "Connection refused" error means it cannot reach the Redis server. Usually the service is down or the host is wrong, especially in Docker.

23 June 2026 Laravel

500 Internal Server Error in Laravel

A 500 error is a generic "something broke" on the server. The error itself tells you nothing, the real message is in your logs. Here is where to look and the usual culprits.

23 June 2026 Laravel

Environment variables in Laravel

A complete list of all available environment variables used in the latest Laravel (version 11).

13 March 2024 Laravel

419 Page Expired error in Laravel

When working with Laravel you will encounter this error from time to time. Here's how you can fix this error.

23 February 2024 Laravel

How to clear cache in Laravel

Laravel uses caching for a lot of parts of the framework, here's how you can clear all of them.

15 February 2024 Laravel

Complete list of Laravel events

Laravel provides quite a lot of events that are fired by default, which makes it easy to hook into using listeners.

10 October 2023 Laravel

Laravel Valet

For Mac users Laravel Valet is an execellent tool to develop all your PHP projects locally.

26 April 2023 Laravel

Creating an encrypted cookie value in Laravel

8 March 2023 Laravel

Disable CSRF in Laravel

Sometimes you need to disable the CSRF token verification in Laravel. A common use case is when you want to receive POST webhooks.

6 December 2022 Laravel

Logging in Laravel

When you have an web app running, it is important to know what it does and how it's going. To get more insight into this, using the extensive logging features of Laravel is key.

16 November 2022 Laravel

How to check which Laravel version of your app is using

Check which Laravel version your app is running on.

16 November 2022 Laravel

Disable cookies in Laravel

When you don't need cookies, it's a good practice to prevent your app from creating them in the first place.

5 September 2022 Laravel

How to use different PHP versions with Laravel Valet

Laravel Valet is an awesome tool to quickly setup an development environment on your Mac. Here's how you can switch between different PHP versions while developing multiple projects.

19 August 2022 Laravel