8000 Add Laravel app instance to command (#146) · KornaLaravel/laravel-tinker@c779c31 · GitHub
[go: up one dir, main page]

Skip to content

Commit c779c31

Browse files
authored
Add Laravel app instance to command (laravel#146)
1 parent e35270c commit c779c31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Console/TinkerCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ protected function getCommands()
102102
$config = $this->getLaravel()->make('config');
103103

104104
foreach ($config->get('tinker.commands', []) as $command) {
105-
$commands[] = $this->getLaravel()->make($command);
105+
$commands[] = $this->getApplication()->add(
106+
$this->getLaravel()->make($command)
107+
);
106108
}
107109

108110
return $commands;

0 commit comments

Comments
 (0)
0