laravel / tinker

Powerful REPL for the Laravel framework.
https://laravel.com/docs/artisan#tinker
MIT License
7.32k stars 130 forks source link

Add Laravel app instance to command #146

Closed driesvints closed 2 years ago

driesvints commented 2 years ago

In #144 we solved the issue that none of the existing artisan commands were working anymore in Tinker. An additional fix is needed to set the Laravel app instance on the resolved commands so custom commands can keep on working. We can achieve this with how the original resolve method worked before the lazy load changes by using the add method that'll set the Laravel instance.

Fixes https://github.com/laravel/tinker/issues/145

Brenneisen commented 2 years ago

Hi @driesvints, could you tag a patch release? Thanks!

driesvints commented 2 years ago

@Brenneisen you were a few seconds too early. I was just tagging a release 🙂