--- title: "Laravel 7 is Released Now! Explore What’s New in Laravel 7" url: "https://www.krishaweb.com/blog/laravel-7-release/" date: "2020-03-05T12:47:13+00:00" modified: "2024-06-17T09:37:51+00:00" type: "Article" resource: "https://www.krishaweb.com/blog/laravel-7-release/" timestamp: "2024-06-17T09:37:51+00:00" author: name: "Nirav" url: "https://www.krishaweb.com" categories: - "Web Development" tags: - "Laravel 7" - "Laravel 7 Release" - "Laravel Airlock" - "Laravel Update" - "Taylor Otwell" word_count: 766 reading_time: "4 min read" summary: "Laravel 7 has been released on 3rd March 2020. This is not LTS version so according to Laravel version support policy, they will provide 6-month bug fix until 3 September 2020. The big news is Lara..." description: "Laravel 7 has been released on 3rd March 2020. Let\'s explore what is new in Laravel 7 Release and what are the improvements than Laravel 6. Read full blog." keywords: "Laravel 7, Laravel 7 Release, Laravel Airlock, Laravel Update, Taylor Otwell" language: "en" schema_type: "Article" related_posts: - title: "Introducing Laravel Vapor (Laravel v6.0), A Serverless Hosting Platform" url: "https://www.krishaweb.com/blog/introducing-laravel-vapor-laravel-v6-0-a-serverless-hosting-platform/" - title: "What’s New in Laravel 6.0 Release? (Laravel 6 Feature Upgrades)" url: "https://www.krishaweb.com/blog/whats-new-in-laravel-6-release/" - title: "Laravel 9.0 Released: Let’s Explore What’s New in Laravel v9.0!" url: "https://www.krishaweb.com/blog/whats-new-in-laravel-9/" --- # Laravel 7 is Released Now! Explore What’s New in Laravel 7 _Published: Thursday,March 5, 2020_ _Author: Nirav_ ![Laravel 7 Release](https://d1hdtc0tbqeghx.cloudfront.net/wp-content/uploads/2020/03/04135333/laravel-7-release.jpg) **![Laravel 7 Release](https://d1hdtc0tbqeghx.cloudfront.net/wp-content/uploads/2020/03/04135333/laravel-7-release.jpg) Laravel 7** has been [released](https://laravel.com/docs/7.x/releases) on 3rd March 2020. This is not LTS version so according to Laravel version support policy, they will provide 6-month bug fix until 3 September 2020. The big news is Laravel will release a new major version every 6 months. Here you can see what new features you are getting in Laravel 7… - Laravel Airlock - Better routing speed - Blade component tags - Fluent string operations - A new HTTP client - New artisan commands - Multiple Mail driver - CORS support ### Laravel Airlock It is mainly built by Taylor Otwell. Laravel Airlock provides an easy authentication system for mobile applications, single-page applications and simple token-based APIs applications. It will allow each and every user of your application to generate multiple API tokens for their account. All these tokens may be granted abilities which specify which actions the tokens are allowed to perform. For more information on Laravel Airlock, consult the [Airlock documentation](https://laravel.com/docs/7.x/airlock). ### Better Routing Speed **Laravel 7** will give 2x faster speed than [Laravel 6](https://www.krishaweb.com/whats-new-in-laravel-6-release) using route:cache. One more best feature is defined as Route Model binding. Using this feature you can bind your Model in your route. ``` Route::get('users/{user:slug}', function (App\User $user) { return $user; }); ``` For more information on route model binding, please consult the [routing documentation](https://laravel.com/docs/7.x/routing#route-model-binding). ### Blade Component Tags Laravel 7 allows you to define your own components and use them in your blade files like below: ##### Define Component ``` type = $type; } public function classForType() { return $this->type == 'success' ? 'notify-success' : 'notify-warning'; } public function render() { return view('components.notify'); } } ``` ##### Make Component Tag ``` {{ $heading }}{{ $slot }} ``` ##### Using it in Blade files ``` Alert content... Default slot content... ``` Please consult the [full Blade component documentation](https://laravel.com/docs/7.x/blade#components) to learn about this feature. ### Fluent String Operations Fluent string operations were developed by [Taylor Otwell](https://twitter.com/taylorotwell). You are likely familiar with Laravel’s existing Illuminate\\Support\\Str class, which provides a variety of helpful string manipulation functions. Laravel 7 now offers a more object-oriented, fluent string manipulation library built on top of these functions. You may create a fluent Illuminate\\Support\\Stringable object using the Str::of method. A variety of methods may then be chained onto the object to manipulate the string: ``` return (string) Str::of(' Laravel Framework 6.x ') ->trim() ->replace('6.x', '7.x') ->slug(); ``` For more information on the methods available via fluent string manipulation, please consult its [full documentation](https://laravel.com/docs/7.x/helpers#fluent-strings). ### A New HTTP Client It is mainly developed for a request to API endpoints. ##### POST Request ``` 'Laravel 7', ]); ``` ##### GET Request ``` $response = Http::get($url); $response = Http::get($url,['xyz'=>'pqr']); ``` ##### With Header ``` $response = Http::withHeaders(['xyz' => 'pqr'])-> post($url, [ 'baz' => 'qux', ]); ``` ##### Response ``` $response['xyz'] $response->body() $response->json() $response->status() $response->ok() ``` To learn more about all of the features of the HTTP client, please consult the [HTTP client documentation](https://laravel.com/docs/7.x/http-client). ### New Artisan Command A new artisan command is added in Laravel 7 which is ``` php artisan test ``` ### Multiple Mail Drivers An additional feature in Laravel 7 is that you can now configure multiple Mail drivers in a single application. Each mailer configured within the mail configuration file may have its own options and even its own unique “transport”, allowing your application to use different email services to send certain email messages. For example, your application might use Postmark to send transactional mail while using Amazon SES to send bulk mail. By default, Laravel will use the mailer configured as the default mailer in your mail configuration file. However, you may use the mailer method to send a message using a specific mailer configuration: ``` Mail::mailer('postmark') ->to($request->user()) ->send(new OrderShipped($order)); ``` For more information on Markdown mail, please consult the [mail documentation](https://laravel.com/docs/7.x/mail#markdown-mailables). ### CORS Support Laravel 7 includes first-party support for configuring Cross-Origin Resource Sharing OPTIONS request responses by integrating the popular Laravel CORS package written by Barry vd. Heuvel. A new cors configuration is included in the default Laravel application skeleton. For more information on CORS support in Laravel 7.x, please consult the [CORS documentation](https://laravel.com/docs/7.x/routing#cors). ### Wrapping Up!!! Find out more about Laravel 7 These are just a few of the new features in Laravel 7 and to see a complete list check out the [release notes](https://laravel.com/docs/7.x/releases) as well as the [upgrade guide](https://laravel.com/docs/7.x/upgrade). ![author](https://d1hdtc0tbqeghx.cloudfront.net/wp-content/uploads/2023/06/22062906/NIRAV-1.png) ###### Nirav Panchal Lead – Custom DevelopmentLead of the Custom Development team at KrishaWeb, holds AWS certification and excels as a Team Leader. Renowned for his expertise in Laravel and React development. With expertise in cloud solutions, he leads with innovation and technical excellence. ![author](https://d1hdtc0tbqeghx.cloudfront.net/wp-content/uploads/2023/06/22062906/NIRAV-1.png) Interact With Me- - - [ ](mailto:) --- _View the original post at: [https://www.krishaweb.com/blog/laravel-7-release/](https://www.krishaweb.com/blog/laravel-7-release/)_ _Served as markdown by [Third Audience](https://github.com/third-audience) v3.6.1_ _Generated: 2026-07-17 02:41:02 UTC_