We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb00755 commit bc94cf1Copy full SHA for bc94cf1
1 file changed
src/Console/TinkerCommand.php
@@ -54,7 +54,12 @@ public function handle()
54
$shell->addCommands($this->getCommands());
55
$shell->setIncludes($this->argument('include'));
56
57
- $path = $this->getLaravel()->basePath().DIRECTORY_SEPARATOR.'vendor/composer/autoload_classmap.php';
+ if (isset($_ENV['COMPOSER_VENDOR_DIR'])) {
58
+ $path = $_ENV['COMPOSER_VENDOR_DIR'];
59
+ } else {
60
+ $path = $this->getLaravel()->basePath().DIRECTORY_SEPARATOR.'vendor';
61
+ }
62
+ $path .= '/composer/autoload_classmap.php';
63
64
$loader = ClassAliasAutoloader::register($shell, $path);
65
0 commit comments