Laravel 9 Release

Laravel 9 Release

Laravel 9 Release

Today Laravel 9 was released. Here are the list of change at a glance.

PHP 8.0: Laravel 9 requires at least PHP 8.0

    1. Symphony Mailer: Instead of Swift Mailer (no longer maintained), Symphony Mailer will be used.
    2. Flysystem 3.x: Flysystem 3.x support is added.
    3. Improved Eloquent Accessors / Mutators: Laravel 9.x offers a new way to define Eloquent accessors and mutators.
    4. Enum Eloquent Attribute Casting: Eloquent can now allows to cast attribute values to PHP enums. But this is only available for PHP 8.1+
    5. Implicit Route Bindings With Enums: This feature is added by Nuno Maduro. This feature will allowtypehint an Enum in route definition.
    6. Forced Scoping Of Route Bindings: This feature will allow user to add second model in  Route bindings such that it must be a child model of pervious model.
    7. Route Group for Controllers: Another amazing feature which will allow user to define a common  controller. Such as:
      use App\Http\Controllers\OrderController;
      
      Route::controller(OrderController::class)->group(function () {
          Route::get('/orders/{id}', 'show');
          Route::post('/orders', 'store');
      }); 
    8. Full Text Indexes / Where Clauses:  This feature will allow user to use fulltext with “where” clause. eg. ->whereFullText(‘something’, ‘another thing’).
    9. Laravel Scout Database Engine: User can now use Scout Search service in small to medium Database.
    10. Rendering inline blade templates: This will allow user to transform raw Blade template to valid HTML. eg.
      use Illuminate\Support\Facades\Blade;
      
      return Blade::render('Hello, {{ $name }}', ['name' => 'Julian Bashir']);
    11. Slot Name Shortcut:  User now specify slot’s name using a convenient with shorter syntax.
    12. .Checked / Selected Blade Directives: You can now use “@checked” directive to indicate given HTML checkbox is “checked”.
      <input type="checkbox"
              name="active"
              value="active"
              @checked(old('active', $user->active)) />
    13. Bootstratp 5 pagination views added: You can use both Tailwind or Bootstrap 5 pagination views. You just have to call “use BootstrapFive in boo methof of App\Providers\AppServiceProvider class.
    14. Improved Validation Of Nested Array Data: Improved Validation Of Nested Array Data.
    15. Laravel Breeze API & Next.js: Laravel Breeze API scaffolding and Next.js starter kit is added.
    16. Improved Ignition Exception Page: New version added with dark mode, open in editor and many more.
    17. Improved route:list CLI Output: This will now provide more data.
    18. Test Coverage Using Artisan test Command: User can explore the coverage area of text by add -coverage flag in artisan command.
    19. Soketi Echo Server: Soketi Echo Server support added.
    20. Improved Collections IDE Support: Added support for Laravel Collections IDE Support.
    21. Helpers: Some new helpers added.

 

Check Out More Resources:

Articles:
Website: https://laravelplug.com/
YouTube Channel: https://www.youtube.com/channel/UCnTxncHQcBSNs4RCuhWgF-A?sub_confirmation=1
WordPress Playlist: https://www.youtube.com/watch?v=8VvXzFAFwQU&list=PLVoVZqAh8dTLHZ51egvEU7dsOrRCSIMWx
Tools Playlist: https://www.youtube.com/watch?v=gTQoUn3BQkM&list=PLVoVZqAh8dTK-DWHBGWOEEvzvPQrgFne-

WordPress Tutorials: https://laravelplug.com/category/wordpress/
Laravel Tutorials: https://laravelplug.com/category/laravel/
PHP Tutorials: https://laravelplug.com/category/php/
SQL Tutorials: https://laravelplug.com/category/sql/
Various Tips: https://laravelplug.com/category/tips/
Useful Tools: https://laravelplug.com/category/tools/

Socials:

Twitter: https://twitter.com/LaravelPlug
Pinterest: https://www.pinterest.com/LaravelPlugCom/
Facebook: https://www.facebook.com/groups/1020759861842360
Mail: info@laravelplug.com

#Laravel #sql #mysql

 

That’s All. Feel free to knock me. Thanks.

Editorial Staff

A Learner and trying to share what I learned!