News for PHP developers: Laravel 11 release

On March 12, 2024, the long-awaited version 11 of the Laravel framework was released, bringing with it a number of exciting new features and improvements for the PHP development community.

Laravel, which is known for its elegance and efficiency in the development of web applications, is once again setting new standards with this new version.

Important highlights of Laravel 11:

  • Minimum PHP v8.2 requirement: Laravel 11 requires PHP version 8.2, which encourages developers to update their systems accordingly to benefit from the latest security and performance improvements.
  • Laravel Reverb - A new WebSocket package: With Laravel Reverb, Laravel 11 introduces a new WebSocket server that enables real-time communication between client and server. Reverb is characterized by high speed, seamless integration with Laravel Broadcasting, support for horizontal scaling using Redis and compatibility with the Pusher protocol.
  • Revised directory structure: The new version comes with a streamlined directory structure that reduces the number of files in a fresh installation by about 69. This simplifies the structure and improves the clarity of the project.
  • Changes to model casts: Model casts are now defined as a method instead of a property, which allows for more flexible handling.
  • New Dumpable Trait: This trait aims to simplify the core of the framework and allow developers to use it in their own classes.
  • Configuration changes: Laravel 11 simplifies the configuration files and extends the .env file to cover all necessary options.
  • New helper method once: This method ensures that certain code is only executed once, regardless of how many times an object method is called.
  • Streamlined standard migrations: The standard migrations have been revised and combined into just two files.
  • Changes to routes: There are now only two route files by default, and API routes and WebSocket broadcasting are optional.
  • New /up health route: Laravel 11 introduces a new health check route that enables better integration with uptime monitoring tools.
  • APP_KEY Rotation: A new method to smoothly rotate the APP_KEY improves security without compromising older encrypted data.
  • Removal of the Console Kernel: Console commands are now defined directly in routes/console.php.
  • New Artisan commands: New Artisan commands have been added for quick creation of classes, enums, interfaces and traits.
  • New welcome page: With the major updates, you will also receive a new welcome page when creating a new Laravel application.

These new features in Laravel 11 promise to make the development of web applications even more efficient and enjoyable. For PHP developers looking for a modern and powerful framework, Laravel 11 offers exciting opportunities to take their projects to the next level.

Ratings

There are no comments available yet.

Here you can write a comment


Please enter at least 10 characters.
Loading... Please wait.
* Pflichtangabe

Related topics

500. Artikel bei phphatesme.com

Der 500. Artikel ist veröffentlicht. Eine Leistung, die den jungen Blog direkt an die Spitze der deutschsprachigen Bloggerszene katapultiert hat und das innnerhalb der letzten 1,5 Jahren. ...

phphatesme

Autor : phphatesme
Category: Software & Web-Development

Why texting with artificial intelligence is really good

Artificial intelligence is about to take over the world. The biggest companies are developing systems that can write a text for you. And they do it very well. ...

admin

Autor : admin
Category: SEO & Online-Marketing

PHP SQL injection flaw in xt: Commerce 3.0.4

In the version xt:Commerce 3.0.4 an error has been reported. xt:Commerce is a shop based on PHP ...

admin

Autor : admin
Category: Miscellaneous

Die Geschichte von PHP

Inzwischen gehören personalisierte Websites zu unserem Alltag dazu. Jeder hat die Möglichkeit, mit einer geeigneten Programmiersprache eine eigene Homepage zu erstellen. ...

admin

Autor : phpler
Category: Software & Web-Development

"PHP5 / MySQL 5" vom Erfolgsautor Matthias Kannengiesser

Erfolgsautor Matthias Kannengiesser vermittelt in dieser aktualisierten Version seines Standardwerks das Profiwissen, was Sie für die anspruchsvolle Webprogrammierung brauchen. ...

admin

Autor : admin
Category: Software & Web-Development

PHP 5.4.0 ist fertig!

Mit neuen Spracheigenschaften aber ohne Register Globals, Magic Quotes und Safe Mode ist PHP 5.4.0 nach drei Jahren nach erscheinen der Version 5.3.0 fertig. ...

admin

Autor : admin
Category: Software & Web-Development

Wir entwickeln seit über 20 Jahren Web & E-Commerce Anwendungen
Egelsbach, Deutschland

Publish a press release

Share your news and information

Share your news and information with others

You want to inform other users about an interesting IT topic, then sign up now and share it with our PHP community

learn more

Publish a press release