I am working on project which was created using Laravel 4.2 and i am curious to know, if Laravel 4.2 and Laravel 5.2 , supports PHP 7 or not ?
Thanks
Update: Starting from 4.2.20 Laravel supports PHP7
#laravelphp tweet:
A special release of Laravel 4.2 has been made (4.2.20) to provide PHP
7 support. Also updates base Symfony components to 2.7.
From one of Laravel issues:
Laravel 5.1 is the first version of Laravel to support PHP 7.
and
Laravel 4.2, and the related symfony version will never get PHP 7 support.
Graham Campbell is the main Laravel contributor after Taylor Otwell, so this info is pretty reliable.
As from today Laravel 4.2 got support for PHP 7. So you can upgrade to 4.2.20 to use it in PHP 7
Related
This question already has an answer here:
Laravel 5.8 running on PHP 8.0
(1 answer)
Closed 18 days ago.
Is there any way to use php 8 or hiugher for my laravel 5* project. Please suggest.
I don't want to increase my laravel version but php.
You cannot. Laravel 5.x is compatible with PHP 7.x. If you want to use PHP 8.x you must upgrade your Laravel project.
Here you have the link to check Laravel 5.x requirements:
https://laravel.com/docs/5.7#server-requirements
And here is the Laravel 8 and Laravel 9 server requirements:
https://laravel.com/docs/9.x/releases#php-8
https://laravel.com/docs/8.x/upgrade#php-7.3.0-required
Also here is a package for a fast Laravel upgrade process. :)
https://laravelshift.com/
I need to do the same project but i need to downgrade the version from laravel 7.* to laravel 5.8 because in my project is required php 7.1 ( I know this is not good but my boss want to do for a client )
Thanks
it is easy to do
first backup your laravel 7 project
second fresh install laravel 5.* in your machine.
and then copy your app , resource , routes and packeage.json and then fire command
composer install
if any error than solve one by one
I have a Laravel 4.0 application. Is it possible to migrate this instance to Laravel 5.7? What are the impacts of this on the system and how can I do it?
There's a possibility if you upgrade it to 4.2 and then use https://laravelshift.com/ to get it to 5.7. It will cost you somewhat though.
I am using Lumen 5.5 and using the following code chunk under app/providers/appServiceProvider.php in boot method.
\URL::forceSchema('https');
It was compatible with the earlier version of Lumen 5.2
Is there any way to sort this out without using mod_rewrite and middleware approaches.
It appears the function has changed name from forceSchema to forceScheme.
You are using Lumen 5.2.
In Laravel 5.2 or earlier version it was working fine.
\URL::forceSchema('https');
In Laravel 5.4 or above version it changed to
\URL::forceScheme('https');
As I am new with Laravel and there are already many versions out there I'm confused about which version I should start with? Which will be the perfect version to start?
Versions are: 5.1, 5.2, 5.3, 5.4, 5.4.22 and upcoming 5.5
It will be my pleasure if Laravel experts give me some good advice.
Go with laravel 5.4 and start working with PHP 7. There's no point in learning the older versions at the moment. With 5.5 (LTS) set to release in July, you will be well set with learning 5.4 now.
There are already tons of resources for 5.4 and any and most codes and tutorials that uses 5.3 can be used with 5.4 without any/much change.
A good series to get started.
https://laracasts.com/series/laravel-from-scratch-2017
Go to this URL: https://laracasts.com/series/laravel-from-scratch-2017. It's version 5.4, by far the best resource you'll find for laravel. And it's free.
You can start with Laravel 5.4 because Laravel 5.4 is updated one if learn Laravel 5.3 then you definitely learn 5.4 therefore you start with Laravel 5.4
Thank you