you can add the file anywhere you like as long as composer can autoload it.
Then you can try this
http://laravel-recipes.com/recipes/44/resolving-objects-from-the-ioc-container
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community