Upgrading Laravel 4.1 to 4.2 - laravel

I was wondering if i could get some advice from people that have upgraded Laravel 4.1 to 4.2
I have had a look at the upgrade guide on the Laravel.com website and it says to add a new cipher option.
So, i added the following to my app.php file
'cipher' => MCRYPT_RIJNDAEL_256
But when i do
composer update
and then run php artisan --version, it still says Laravel 4.1.30
Any help would be greatly appreciated.
Cheers

I think you need to update your composer.json to require "laravel/framework": "4.2.*"... maybe?

The full documentation for Laravel 4.1 to 4.2 upgrade is here:
http://laravel.com/docs/upgrade#upgrade-4.2

Related

Deprecated: Method ReflectionParameter::getClass() is deprecated in Laravel Illuminate Container.php

I recently tried creating a new Laravel project using the laravel new command and going to the {projectname}.test domain returns the error Deprecated: Method ReflectionParameter::getClass() is deprecated in /Users/.../blog/vendor/laravel/framework/src/Illuminate/Container/Container.php
I have my computer's version of php 7.4 required in my composer.json file and I am using Laravel Installer 4.2.4. My projects created in a CMS built with Laravel all show up fine when typing their .test domains so I'm not sure what is wrong with this installation/the Illuminate container. Any advice greatly appreciated, thanks!

Upgrade laravel from 5.1 to 5.8 and artisan commands are not working in laravel 5.1

I have a project which is developed in laravel 5.1 now which client wants some updates where he want to upgrade laravel version to 5.8 but and to add some new functionality but this is 2nd issue 1st issue this terminal is throwing the error of each when run php srtisan
C:\xampp\zerodocs>php artisan
[ErrorException]
The each() function is deprecated. This message will be suppressed on further calls
The PHP each() function was deprecated in PHP 7.2. It seems you are using PHP 7.2 or higher. You will need to follow the upgrade guides and use composer to upgrade from Laravel 5.1 to 5.8.
https://laravel.com/docs/5.3/upgrade
https://laravel.com/docs/5.4/upgrade
https://laravel.com/docs/5.5/upgrade
https://laravel.com/docs/5.6/upgrade
https://laravel.com/docs/5.7/upgrade
https://laravel.com/docs/5.8/upgrade
Or, you will need switch to a compatible PHP version (e.g., PHP >= 5.5.9 as mentioned in the documentation for Laravel 5.1) to use the application.

Laravel 5.2 view in register a provider

i have installed the chat package:
https://github.com/dazzz1er/confer
Unfortunately i get an error when i try to publish it. Here is the error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Support\Facades\View::composer()
Thanks !
As correctly pointed out by #curious_coder confer is not compatible with Laravel 5.2 yet. Please keep an on the open Laravel 5.2 issue on Github and/or ask the author of this package for updates.

Upgrading to Laravel 5.2

having some issues trying to upgrade to Laravel 5.2 from the previous latest version.
On composer update or any artisan class I get the follow error ...
Class validator does not exist
Can not work out whats going on at all.
Any ideas?
Many thanks!
Turns out Whoops was catching a HttpResponseException of which the upgrade docs do say could cause issues. So removed Whoops as problem solved.

Laravel 5 new declaration causing an error

I am using Laravel 5.0.3 for one project few days ago. Now I create another project using the same version but I noticed the declaration (or whatever you call it) has changed from something like:
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode'
to
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class
and this is actually causing an FatalError. My idea is that this is something to do with the php version, but I don't want to update just yet.
What options do I have to sort this issue?
It's called class name resolution and a new feature that is implemented in PHP 5.5. The reason that you are getting that error is your PHP version of your PHP interpreter should be lower than PHP 5.5. Don't forget that Laravel 5.1 LTS package requires PHP 5.5.9 version minimum. You can keep your old configuration as 'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode' instead of \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class. But first, you should also downgrade your Laravel version from 5.1 to 5. Better and recommended is to upgrade your PHP version as PHP 5.4 will be soon deprecated.

Resources