Search code examples
laraveltinker

Class App\Console\Commands\ExampleCommand does not exist when running php artisan tinker


Whenever I try to run php artisan tinker i get:
ReflectionException : Class App\Console\Commands\ExampleCommand does not exist

While that file does indeed not exist, does it have to in order to run tinker?


Solution

  • Had to comment out the ExampleCommand line in the tinker.php file (line 17). Thank you @bhuncho for pointing out the command whitelist documentation, found it based on that!