LARAVEL 5.8

LARAVEL 5.8

Laravel is an open source PHP based web framework. New versions of Laravel are released every 6 months. The bug fixes for the released version are provided for 6 months and security fixes are provided for a year. The latest version Laravel 5.8 was released on February 26, 2019.

Following are some significant updates and new features of Laravel 5.8

     1. Automatic Policy Resolution

Laravel 5.8 brings automatic policy resolution, so now there is no need to register policies in AuthServiceProvider, they will be directly             guessed. However, if your policies are in non-conventional locations, you can provide your own guessing logic.

     2. Cache TTL(Time To Live): Minutes to Seconds

        The caching function in Laravel 5.8 will apply Time To Live (TTL) in seconds rather than in minutes which was the case with Laravel 5.7. Time To Live (TTL): The amount of time between the item is stored and when it is considered out-dated.

     3. Carbon Updates

        Carbon 1 or Carbon 2 for DateTime function in Laravel 5.8 is available now. Carbon immutable can be used with the new update also CarbonImmutable can be made default in the application.

     4. String and Array Helpers are deprecated

        Global string and array helpers are deprecated from Laravel 5.8. They will be offering very little value over using the class equivalents and styling. Also the helper functions will be removed in further releases.

    5. Blade Template File Path

         The previous versions Laravel 5.6 or Laravel 5.7 used to compile blade file but no path was provided. The update Laravel 5.8 provides the path of blade template path.

    6. Email Validation

         The built-in email validation in Laravel will now include international characters in email addresses in the latest update. The validation logic now is matched by the logic used by SwiftMailer and they both conform to RFC6530.

   7. New Error Page Templates

         Laravel 5.8 provides well-designed error page template which would be suitable for any website or application without needing to re-design it according to the theme.

Related Posts

×
Hello there!

Click on our representatives below to chat on WhatsApp or send us an email to raj.padhiar@otfcoder.com

× How can I help you?