Tuesday, April 11, 2017

Laravel - Problems with updating to Laravel 5.4. Way module share() error

This is regarding Laravel and I am still pretty new to the framework. I recently updated my Laravel to 5.4. And I am running into the following error:

[Symfony\Component\Debug\Exception\FatalThrowableError]              
 Call to undefined method Illuminate\Foundation\Application::share() 

Some investigation landed me on one of my vendor module 'Way' is still call share(), which is no longer supported. I did realize that singleton() is the preferred way, but should I even touch the vendor files? Should composer update the vendor Modules as well (especially Way since it is one of the core module)?

Any tips will be greatly appreciated!

Thanks.



via Tim Cheong

Advertisement