Skip to main content
INFYNNO
INFYNNO
Infinite InnovationsInfinite Innovations
  1. Home
  2. Articles
  3. What’s Exciting In Laravel-7

What’s Exciting In Laravel-7

Laravel 7 is now released and includes many new features including Laravel Airlock, better routing speed, custom Eloquent casts, Blade component tags, fluent string operations, a new HTTP client, CORS support, and many more features.

B

Bhavdip

Author · Infynno Solutions

Mar 26, 20201 sections
Laravel

At a glance

CategoryLaravel
Sections1 topics
AuthorBhavdip
PublishedMar 26, 2020
Start reading
What’s Exciting In Laravel-7

What’s Exciting In Laravel-7

Laravel 7 is now released and includes many new features including Laravel Airlock, better routing speed, custom Eloquent casts, Blade component tags, fluent string operations, a new HTTP client, CORS support, and many more features.

1. Laravel Airlock

Laravel Airlock provides a lightweight authentication system for single page applications, mobile applications, and simple, token based APIs. Airlock allows each user of your application to generate multiple API tokens for their account. These tokens may be granted abilities / scopes which specify which actions the tokens are allowed to perform.

Airlock uses Laravel’s built-in cookie based session authentication services. This provides the benefits of CSRF protection, session authentication, as well as protects against leakage of the authentication credentials via XSS. Airlock will only attempt to authenticate using cookies when the incoming request originates from your own SPA frontend.

2. HTTP Client

The Zttp Guzzle wrapper package by Adam Wathan will be coming to Laravel 7 as a new Http package.

http_client.png

This is not an entirely new client – it is only a UX / DX convenience layer on top of Guzzle.

3. Route Model Binding Improvements

Key Customization

Sometimes you may wish to resolve Eloquent models using a column other than id. To do so, Laravel 7 allows you to specify the column in the route parameter definition:

route_model.png

4. Automatic Scoping

Sometimes, when implicitly binding multiple Eloquent models in a single route definition, you may wish to scope the second Eloquent model such that it must be a child of the first Eloquent model. For example, consider this situation that retrieves a blog post by slug for a specific user:

automatic_scoping.png

5. CORS Support

Laravel 7 includes first-party support for configuring Cross-Origin Resource Sharing (CORS) OPTIONS request responses by integrating the popular Laravel CORS package written by Barry vd. Heuvel.

6. Blade Component Tags & Improvements

Blade components have been overhauled to allow tag-based rendering, attribute management, component classes, inline view components, and more. Since the overhaul of Blade components is so extensive.

To create a class based component, you may use the make:component Artisan command.

php artisan make:component Button

The make:component command will also create a view template for the component. The view will be placed in the resources/views/components directory.

To display a component, you may use a Blade component tag within one of your Blade templates. Blade component tags start with the string x- followed by the kebab case name of the component class:

You may pass data to Blade components using HTML attributes. Hard-coded, primitive values may be passed to the component using simple HTML attributes. PHP expressions and variables should be passed to the component via attributes that are prefixed with ::

button_type.png

These are just a few of the new features in Laravel 7 and to see a complete list check out the release notes as well as the upgrade guide.

B

Bhavdip

Author · Infynno Solutions

Mar 26, 2020

Share

XLinkedIn

On this page

What’s Exciting In Laravel-7

Building something like this?

Free discovery call. NDA before we go further.

Book a free call
B

Bhavdip

Author

Engineer at Infynno Solutions building AI, EdTech & enterprise software products.

More from the blog

All articles
What Is The Use Of Invokable Controller In Laravel
LaravelJul 28, 2020

What Is The Use Of Invokable Controller In Laravel

One controller for handling all the CRUD requests. Now this doesn’t look bad until you start defining those methods and very soon your controller becomes very fat and hard to manage and it becomes much worse if you are validating requests in the same controller instead of using separate FormRequest classes.

Bhavdip
What Is Ioc Container In Laravel?
LaravelJul 27, 2020

What Is Ioc Container In Laravel?

The Laravel inversion of control container is a powerful tool for managing class dependencies. Dependency injection is a method of removing hard-coded class dependencies. Instead, the dependencies are injected at run-time, allowing for greater flexibility as dependency implementations may be swapped easily.

Bhavdip
What Is Service Container In Laravel?
LaravelJul 24, 2020

What Is Service Container In Laravel?

The Laravel service container is a powerful tool for managing class dependencies and performing dependency injection. Dependency injection is a fancy phrase that essentially means this: class dependencies are “injected” into the class via the constructor or, in some cases, “setter” methods.

Bhavdip
Infynno

Infynno is an AI-native product engineering company helping businesses build, modernize, and scale software products through AI, automation, and experienced engineering teams.

Trusted worldwide

Google
Google
4.9
22 reviews
Clutch
Clutch
4.9
8+ reviews
Upwork
Upwork
Top Rated
8K+ Hours, 20+ Jobs
Glassdoor
Glassdoor
5
18 reviews

Trusted worldwide

Google
Google
4.9
22 reviews
Clutch
Clutch
4.9
8+ reviews
Upwork
Upwork
Top Rated
8K+ Hours, 20+ Jobs
Glassdoor
Glassdoor
5
18 reviews

Engineering Services

  • AI Strategy & Consulting
  • AI Integration
  • AI Automation & AI Agents
  • IT Consulting
  • Web Development
  • Product Development
  • AI Search Visibility (AEO + GEO)
  • Social Media and Branding

Edtech Industry Expertise

  • Learning Management Software
  • Exam Preparation Platform
  • Tutor Management Software
  • Medical Entrance Exam Platform
  • Scholarship Exam Platform
  • AI For Education
  • EdTech Mobile App Development

Company

  • About Infynno
  • Our Work
  • Client Success Stories
  • Life @ Infynno
  • Contact Us

Resources

  • Case Studies
  • Guides
  • Blogs
  • FAQs
  • Open Source & Community
  • Careers

Contact

  • Project Inquiry

    sales@infynno.com
  • HR & Careers

    hr@infynno.com
  • Phone

    +91-84888-38308

Office address

India

Ahmedabad, India

E-720 Ganesh Glory 11,

Nr. BSNL Office, Jagatpur Road,

Gota, S.G. Highway,

Ahmedabad - 382481, Gujarat

IST · UTC+5:30

Trusted worldwide

Google
Google
4.9
22 reviews
Clutch
Clutch
4.9
8+ reviews
Upwork
Upwork
Top Rated
8K+ Hours, 20+ Jobs
Glassdoor
Glassdoor
5
18 reviews
ISO 27001:2022 certified company

An ISO 27001:2022 Certified Company

  • LLP Identification Number - AAZ-7794

© 2026 Infynno Solutions LLP. All rights reserved.

Privacy PolicyTerms of UseCookie PolicySitemap
Infinite Innovations