Downgrade Laravel project version?

check laravel version
how to create laravel project
composer downgrade package
install specific laravel version
how to update php version in laravel
laravel 6
laravel download
laravel versions

I have made a Laravel web application which is working on my localhost with PHP version: 5.6.8, but on the live server PHP version is 5.4.42 and application is giving error:

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/content/p3pnexwpnas04_data02/49/2370249/html/kjhjhkj/nkjkjkk/public/index.php on line 50

From what i have read, problem is that latest laravel version needs PHP 5.5 version. So what are my options now ? Should i downgrade laravel version of the project and how? I am able to download Laravel 4.2 version but how to merge it with project that I made already?

Most of the times, major hosting providers allow to execute multiple versions of PHP and you can pick one of them using the .htaccess file in your public directory, or some settings in your panel.

I'm not aware about the hosting you're using, but you could try something like this:

Downgrade form laravel 5.6 to 5.5, @Snapey what is good choice, about downgrade my laravel version or to do that, thats why im still confusing right now with my final project :(. How to change laravel version from 5.2 to 5.1 I was tried to change version in composer.json file and run composer update but dont work - I can't register user (I watch and code from beginer tutorial from laracast: https://laracas

If you absolutely can't switch (although it's strongly recommended and usually possible, even with shared hosting), you don't really need to go as low as 4.2. Laravel 5.0 only needs PHP >= 5.4. Since Laravel 5.1 and 5.0 are mostly identical, you could create a new 5.0 app and copy the contents of your 5.1 app there. Then you should make sure to undo any changes that would of had been done with the upgrade guide below:

Upgrade to Laravel 5.1 Guide

How to downgrade my laravel, i have 5.6 and i want go to 5.4, Just mention the required version in composer.json and run composer install. Of course composer create-project —prefer-dist laravel/laravel blog 5.4. You can​  Laravel now supports both Carbon 1 and Carbon 2; therefore, Composer will try to upgrade to Carbon 2.0 if no other compatibility issues with any other packages are detected. Please review the migration guide for Carbon 2.0. Likelihood Of Impact: Very Low. The add method has been moved from the Eloquent collection class to the base collection

Downgrade your Laravel framework version in composer.json file. It is easier than trying to downgrade php version

How to Upgrade or Downgrade Laravel Version Safely, Is there a way to downgrade my installation now that I'm so far into the project? just grab the old version from here: Every now and then you would like to check what version of Laravel do you have installed. How to determine that? Here are a couple of ways. I tested this for Laravel 4. 1. The easiest way is to simply run artisan command php artisan --version from your CLI and it will return your Laravel version: 2.

Is it possible to downgrade my Laravel? I have the Laravel 5.5 and I , I have made a Laravel web application which is working on my localhost with PHP version: 5.6.8, but on the live server PHP version is 5.4.42 and application is​  Once installed, the laravel new command will create a fresh Laravel installation in the directory you specify. For instance, laravel new blog will create a directory named blog containing a fresh Laravel installation with all of Laravel's dependencies already installed: laravel new blog. Via Composer Create-Project.

Possible to downgrade from 5.6 to 5.5? : laravel, GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. Sign up. Contribute to laravel/framework development by creating an account on GitHub. Dismiss Be notified of new releases. Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 50 million developers.

Downgrade Laravel project version?, I had Laravel Framework version 5219 After changing in and deleting vendor folder I tried composer install ,but php artisan --version it's still 5.2.19. in composer.json match those that shipped with the Laravel 5.1 project  Laravel Tinker is a powerful REPL for the Laravel framework, powered by the PsySH package. All Laravel applications include Tinker by default. However, you may install it manually if needed using Composer: composer require laravel/tinker. Tinker allows you to interact with your entire Laravel application on the command line, including the

  • Get a host that has PHP 5.5 or higher. PHP 5.4 is no longer supported and thus dangerously insecure and irresponsible to run at this time.