Laravel 5.7.12 Released — Here’s How to Install / Upgrade on Ubuntu 16.04 | 18.04 | 18.10

A new version of Laravel has just been released and this brief tutorial shows students and new users how to install or upgrade on Ubuntu systems… This is a maintenance release which brings some bug fixes and minor release like a new CacheManager class has a new forgetDriver() method that allows you to drop a connection already opened by the cache manager….

Laravel is a flexible open source PHP framework for web artisans. It can be used as an alternative to CodeIgniter framework. Laravel is designed for ease of use to allow developers create great applications.

If you’re looking for a simple and straightforward PHP framework to design your next application, you’ll find Laravel to be useful…For more about this release, please visit its news page

Below are some list of bugs fixes and enhancements added to this release:

  • Added CacheManager::forgetDriver method
  • Added a sqlite config option (foreign_key_constraints) to enable / disable foreign key constraints
  • Checked $absolute parameter in UrlGenerator::signedRoute
  • Fixed error in resource building after running php artisan preset nonecommand
  • Fixed whereDoesntHave() and doesntHave() with nested relationships
  • Fixed filesystem locking hangs in PackageManifest::build()

For those need help installing Laravel with either Apache2 or Nginx web servers, they can read the posts below:

Installing Laravel with Apache2 HTTP Server

If you want to install Laravel with Apache2 HTTP Server, the post below should be what you need…

Install Laravel PHP Framework on Ubuntu 16.04 / 17.10 / 18.04 with Apache2 and PHP 7.2 Support

Installing Laravel with Nginx HTTP Support

If you want to run with Nginx stead, the post below is what you’ll need..

Setup Laravel PHP Framework on Ubuntu 16.04 / 17.10 / 18.04 with Nginx and PHP 7.2-FPM Support

Upgrading Laravel

For those who already have Laravel installed and want to upgrade, then steps below should be helpful…

Update your laravel/framework dependency to 5.7.* in your composer.json file.

Run the commands below to open the composer.json file…

sudo nano /var/www/html/MyProject/composer.json

Then change the highlighted lines to the latest version…

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": "^7.1.3",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "5.7.12",
        "laravel/tinker": "^1.0"
    },

Save the file and exit…

If you are using Laravel Passport, you should update your laravel/passport dependency to ^7.0 in your composer.json file.

After that, run the commands below to upgrade…

cd /var/www/html/MyProject
sudo composer update

Of course, don’t forget to examine any 3rd party packages consumed by your application and verify you are using the proper version for Laravel 5.7 support.

That’s it!

You may also like the post below:

Install BoltWire on Ubuntu 16.04 / 18.04 / 18.10 with Apache2 and PHP 7.2

One Reply to “Laravel 5.7.12 Released — Here’s How to Install / Upgrade on Ubuntu 16.04 | 18.04 | 18.10”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.