This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

This holiday season, maximize your sales through enhanced website performance and 24/7 caring support. SAVE 30% NOW

Install Laravel 5.7 & Checkout the New Amazing Features

Updated on  13th September

7 Min Read
install laravel 5.7 and features
Reading Time: 7 minutes

In recent years, Laravel has made its name among the list of top PHP development platforms. It is a top choice of PHP developers and is one of the most popular frameworks in the market. It contributes in many open-source projects. While supports many businesses to create enterprise level applications.

It’s latest version Laravel 5.7 released last month in August 2018 and quickly received tremendous feedback from the developers community. Installing Laravel 5.7 is quite easy and provides developers the ease to perform complex tasks. The main features of Laravel 5.7 includes bug fixes till February 2019 and security fixes till August 2019, which was one of the top question of developers. The release is the improvement of previous Laravel 5.6 version. While it also includes some new features for advanced functionality.

Installation of Laravel 5.7 & New Features
1. Prerequisites
2. Installation Process of Laravel 5.7

3. What’s New in Laravel 5.7

4. Summarizing Up

So in this article, I will demonstrate the installation process of Laravel 5.7 on Cloudways and its new amazing features. The article also shows the Laravel 5.7 upgrade process and few other enhancements and bug fixes.


For the purpose of this tutorial, I assume that you have a Laravel application installed on a web server. My setup is:

  • Laravel 5.7
  • PHP 7.2
  • MySQL

Server level issues could mar your learning experience. In my case, I avoid these issues by using managed Laravel web hosting of Cloudways. Cloudways offers a great development stack and takes care of all server level problems. You can try out Cloudways for free by signing for an account.

Installation Process of Laravel 5.7

PHP 7.2 is the basic requirement for installing Laravel 5.7. Since the default PHP version on Cloudways is 7.2, you don’t need to update its version any further. While changing PHP versions on Cloudways is pretty easy. Just navigate to the Settings & Packages tab and update your desired PHP version from the given dropdown.
The next step is the installation of Laravel 5.7. Just start the Composer and enter the create-project command in your terminal:

When the Laravel 5.7 is properly installed, you will see the following welcome page:

You Might Also Like: Benchmarks of Laravel 5 With PHP 7.2 on Cloudways Platform

Add to .htaccess File

Try the below alternative code, if the default .htaccess file of Laravel does not works.

Remove public from url

To remove public from Laravel application URL. Just rename the server.php file in your Laravel root folder as index.php. Afterwards, copy the .htaccess from /public directory to your root folder.

What’s New in Laravel 5.7

Now after installing Laravel 5.7 completely, let us we discuss some of the new features of Laravel 5.7.

  • Resources Directory Changes
  • Laravel Dump Server
  • Email Verification
  • Laravel Nova
  • Guest User Gates / Policies
  • URL Generator & Callable Syntax
  • Paginator Links
  • Notification Localization
  • Improved Error Messages
  • Testing Artisan Commands

Resources Directory Changes

Once you open the Laravel 5.7 application on your desired Code editor or IDE. You will see the directory structure changes in it. The Resource directory is made flattened and does not have any assets folder.

Taylor Otwell publicly said about this change in one of his tweet. As assets will no longer be in the Resource directory. Instead will contain JS, Sass, lang and views inside it.

Laravel Dump Server

Laravel Dump Server comes in a default package in Laravel 5.7. It is the development dependency in Laravel composer file. Instead of dumping data to the browser itself, it allows you to dump that data to the console or inside an HTML file.

The above command executes a server in the background. It displays data through the console which is sent from the application. While Dump() works in the default scenario, when this command is not running in the background. You can get further information about Dump in its github directory.

Email Verification

Laravel 5.7 also introduces new optional email verification feature. You can use this feature by adding email_verified_at timestamp column in the user’s migration table. Which comes default within the framework.

While to give newly joined users the functionality to verify their email. Implement the MustVerifyEmail interface in the User model.

All the newly registered users receives an email address. Which contains an account activation link, once you implements the MustVerifyEmail interface. It activates their respective accounts as soon as they clicks on it.

Laravel 5.7 also provides a Middleware along with this email verification feature. Which works only with verified emails and not with unverified ones. As a result, this brings great feature to developers to ease their backend tasks.

To protect your routes only for verified emails, attach the middleware in the routes.

Laravel Nova

Released on August 22, 2018, Laravel Nova is officially out now in the market. You can purchase its initial release v1.0.* (Orion) from the official Laravel website. It is not a feature of Laravel, but is a separate package that helps performing various functional operations.

It is a precisely made, advanced admin dashboard for Laravel applications. The main feature of this package is to manage your database records using Eloquent ORM. It also supports various other functional attributes. That includes filters, lenses, actions, queued actions, metrics, authorization, custom tools and others.

To learn more about this package, visit the official Nova website.

Guest User Gates / Policies

The previous Laravel version has the functionality to return false, if it founds any unauthenticated user trying to access the application. But in new Laravel 5.7, you can declare an optional type hint or could input a null default value to allow guest users pass through the authentication checks.

URL Generator & Callable Action URL

Laravel 5.7 introduces a new callable syntax for action URLs. Which is same like the one in Laravel 5.6 that accepts string in action method. The main purpose of this new syntax is to directly enable you access the controller.

Basic syntax for callable syntax:

The new callable array syntax gives you the ease to access controller files from any text editor. Like VSCode, Sublime, Atom or any other editor that supports code navigation.

Paginator Links

This new feature helps controlling additional links that are displayed on either side of the paginator URL window. Working on pagination before, you would have seen three links in it which is by default. But in Laravel 5.7 you can define them explictly, giving you more ease to handle pagination precisely.

Read More About: Guide To Create Vue Pagination in Laravel

Notification Localization

In new Laravel 5.7, you can send notifications in any language by assigning locale for it. The Illuminate\Notifications\Notification class adds new locale method for assigning desired language.

While to set localization for multiple notifications, you can also use facades for the task.

Improved Error Messages

Laravel 5.7 also gives you the functionality to easily track your error messages. As in Laravel 5.7, you can get short messages explaining the non existence of method or any other attribute. Instead of just pointing out the underlying object with confusing red lines.

Testing Artisan Commands

Mohamed Said, the first Laravel employee contributes in the new framework with test artisan commands. From his Twitter handle, he gave a bit introduction about this feature earlier. And now you can find it in the official documentation as well. With this new feature, you get a simple API in the framework that helps testing console apps asking for user input.

Summarizing Up

So this article covers the brief detailing of new Laravel 5.7. It covers the complete process of installing Laravel 5.7 on Cloudways and usage of its new features. Laravel 5.7 is pretty advanced in comparison to its previous version. It introduces diverse functionalities which makes it on top of the PHP frameworks charts. While the enhanced features of Laravel 5.7 also includes bug fixes, security fixes and others.

So if you still have any questions regarding the new Laravel version, feel free to ask them in the comments section below.

Share your opinion in the comment section. COMMENT NOW

Pardeep Kumar

Pardeep is a PHP Community Manager at Cloudways - A Managed PHP Hosting Platform. He love to work on Open source platform , Frameworks and working on new ideas. You can email him at

Start Growing with Cloudways Today.

Our Clients Love us because we never compromise on these

Get Our Newsletter
Be the first to get the latest updates and tutorials.