I'm accessing Laravel's helper function base_path() in a model class. I'm running Laravel 4.1.23
I'm getting the following error:
PHP Fatal error: Call to a member function make() on a non-object in /Applications/mampstack-5.4.23-0/frameworks/laravel/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 492
The weird thing is I tested the function call in phpunit, and it works perfectly. Any help would be appreciated.
My project has the following dependencies:
"require": {
"laravel/framework": "4.1.*",
"cpliakas/git-wrapper": "1.1.*",
"rmccue/requests": "v1.6.0",
"phpseclib/phpseclib": "0.3.*"
}