80 likes | 97 Views
Laravel 7 is released and comprises many innovative features including Laravel Airlock, better routing speed, eloquent custom casts, Blade component tags, fluent string operations, a new HTTP client, CORS support, and others.
E N D
Pixlogix info@pixlogix.com www.pixlogix.com
Laravel 7 is released and comprises many innovative features including Laravel Airlock, better routing speed, eloquent custom casts, Blade component tags, fluent string operations, a new HTTP client, CORS support, and others. Features of Laravel 7 new release: ✦ Laravel Airlock It offers a featherweight authentication system for single-page applications (SPAs), mobile apps, and trouble-free, token-based APIs. Airlock enables users of your users to create numerous API tokens for their account. All these tokens may be settled-in with abilities/scopes, stating which actions the tokens are approved to perform. ✦ Custom Eloquent Casts Laravel has a diversity of built-in, supportive cast types; but, you may rarely require defining your own cast types. You may now carry out this by specifying a class that enables or implements the in-hand “CastsAttributes” interface. Classes that enable or implement this interface need to specify a get and set methodology. The get methodology is accountable for altering a raw value right from the database into the cast value. In contrast, the set methodology should change a casting value right into a raw amount that can be capture-in the database. Pixlogix info@pixlogix.com www.pixlogix.com
✦ Blade Component Tags and Enhancements • Blade components have been refurbished-up to facilitate tag-based rendering, component classes, attribute management, as well as inline view components. Since the revamp of Blade components are so vast; you need to consult the full Blade component documentation to be trained-up about this particular feature. • ✦ HTTP Client • Laravel now offers an expressive, minimal API around the Guzzle HTTP client, enabling you to make outgoing HTTP requests to interact with web applications swiftly. Laravel’s wrapper around Guzzle is highly focused-up on its most general use cases, as well as the simple developer experience. • ✦ Fluent String Operations • Taylor Otwell built fluent string operations. You probably know Laravel’s present Illuminate\Support\Str class that offers a selection of useful string manipulation functionalities. Laravel 7 now delivers an added object-oriented, fluent string manipulation library developed on top of these functionalities. You may generate a smooth Illuminate\Support\Stringable object utilizing the Str::of methodology. • ✦ Route Model Binding Step Up • Key Customization • Many times you may want to resolve eloquent models utilizing a column other than id. For doing the same, Laravel 7 enables you to state the column in the route parameter description. Pixlogix info@pixlogix.com www.pixlogix.com
Automatic Scoping • Many times, when binding manifold eloquent models come in use in a single route description, you may wish to span the second eloquent model such that it must be a child of the initial eloquent model. For instance, consider this circumstance that retrieves a blog post by slug for an explicit user. • ✦ MySQL 8+ Database Queue Enhancements • Laravel 7 provides enhancements to applications using MySQL 8+ as their database supports queue. By utilizing the FOR UPDATE SKIP LOCKED clause and SQL improvements; the database driver can now utilize in higher volume production applications. • ✦ New Artisan Command • A new artisan command comes in use in Laravel 7 which is • “PHP artisan test” • ✦ Multiple Mail Drivers • An added feature in Laravel 7 is that you can now put together numerous Mail drivers in a single application. Every mailer configured within the mail configuration file may have its own choices and even its own exclusive “transport,” enabling your users to utilize several email services to send explicit email messages. For instance, your application can utilize Postmark to send out transactional mails while using Amazon SES to send out bulk mails. Pixlogix info@pixlogix.com www.pixlogix.com
✦ Markdown Mail Template Enhancement The default Markdown mail template has received an up to date design based on the Tailwind CSS color palette. It can be published and tailored as per the application. ✦ CORS Support Laravel 7 comprises first-party support for configuring Cross-Origin Resource Sharing OPTIONS request responses by incorporating the well-liked Laravel CORS package. A new CORS configuration is contained right in the default Laravel application skeleton. ✦ Query Time Casts Many times you may require applying casts while implementing a query when picking a raw value from a specific table. The last posted attribute on the outcomes of this query will be just a raw string. It would be suitable if we could apply a date cast to this attribute when implementing the query. To achieve this, we may use the “withCasts” methodology offered by Laravel 7. ✦ Route Caching Speed Advancements The release includes a methodology of matching compiled, cached routes that have been cached-up utilizing the route: cache Artisan command. On outsized applications, these advancements can lead to 2x speed enhancements in requests every second on a straightforward “Hello World” standard. No alterations to your use are needed to enable the same. Pixlogix info@pixlogix.com www.pixlogix.com
“Award Winning Digital Web Agency” facebook.com/pixlogix Social Profiles pinterest.com/pixlogix twitter.com/pixlogix plus.google.com/+pixlogix Pixlogix info@pixlogix.com www.pixlogix.com
THANKS FOR WATCHING US Source Link Pixlogix info@pixlogix.com www.pixlogix.com
Pixlogix info@pixlogix.com www.pixlogix.com