Laravel Artisan Tinker: The whereami Command

December 7, 2016 —John Koster

The whereami command can be used to approximate where you are currently executing code within your code base. Starting a fresh Tinker REPL session and issuing the whereami command produces these results:

1>>> whereami
2 31| $kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
3 32|
4 33| $status = $kernel->handle(
5 34| $input = new Symfony\Component\Console\Input\ArgvInput,
6 35| new Symfony\Component\Console\Output\ConsoleOutput
7 > 36| );
8 37|
9 38| /*
10 39| |--------------------------------------------------------------------
11 40| | Shutdown The Application
12 41| |--------------------------------------------------------------------

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.