The share method has been removed from the container. This was a legacy method that has not been documented in several years. If you are using this method, you should begin using the singleton method instead:
$container->singleton('foo', function () {
return 'foo';
});
Had issues with installation in a fresh laravel 5.4, I fixed it as per the following...
From Laravel 5.4 Upgrade: https://laravel.com/docs/5.4/upgrade
The share method has been removed from the container. This was a legacy method that has not been documented in several years. If you are using this method, you should begin using the singleton method instead:
$container->singleton('foo', function () { return 'foo'; });