ContainerAware adds a container aware interface, trait and base controller. The service provider will automatically inject an Illuminate\Container\Container instance to anything with JeremyWorboys\ContainerAware\ContainerAware interface.
The JeremyWorboys\ContainerAware\ContainerAwareController also comes with some helper methods for retrieving services from the container and adds method injection into your Laravel 4 controller actions (exactly the same as Laravel 5).
Require this package with composer using the following command:
composer require jeremyworboys/containeraware
After updating composer, add the ServiceProvider to the providers array in app/config/app.php