Laravel 11 is now released!

Joined
Mar 14, 2024
Messages
1
Laravel 11 is now released, including a minimum PHP v8.2, a new Laravel Reverb package, streamlined directory structure, and more...

Please, Log in or Register to view URLs content!
Laravel Reverb​

laravel-reverb-featured.png


Please, Log in or Register to view URLs content!
is a new first-party WebSocket server for Laravel applications, bringing real-time communication between client and server. Some of the features of Reverb include.

Blazing Fast

Reverb is fine-tuned for speed. A single server can support thousands of connections and piping data without the delay and inefficiency of HTTP polling.

Seamless Integration

Develop with Laravel's broadcasting capabilities. Deploy with Reverb's first-party
Please, Log in or Register to view URLs content!
integration. Monitor with baked-in support for Pulse.

Built for Scale

Infinitely increase capacity by utilizing Reverb's built-in support for horizontal scaling using Redis, allowing you to manage connections and channels across multiple servers.

Pusher

Reverb utilizes the Pusher protocol for WebSockets, making it immediately compatible with Laravel broadcasting and Laravel Echo.

Please, Log in or Register to view URLs content!
Streamlined Directory Structure​

On a fresh install, the file count has dropped by ~ 69 files. Nice.

Check out our post on this complete new
Please, Log in or Register to view URLs content!


  • Controllers no longer extend anything by default.
  • No more middleware directory.
Currently, Laravel includes nine middleware and many you would never customize. However, if you do want to customize them, that is moved to the App/ServiceProvider. For example:

public function boot(): void
{
EncryptCookies::except(['some_cookie']);
}

Please, Log in or Register to view URLs content!
No more Http/Kernel​

Most of the things you used to could do in the Kernel you can now do in the Bootstrap/App.

return Application::configure()
->withProviders ()
-›withRouting(
web: __DIR__.'/../routes/web.php'
commands: __DIR__.'/../routes/console.php',
)
->withMiddleware(function(Middleware Smiddleware) {
$middleware->web(append: LaraconMiddleware::class):
})
 

Latest resources

Forum statistics

Threads
5,940
Messages
14,095
Members
4,086
Latest member
insurreptor
Back
Top Bottom