Closed imikemiller closed 6 years ago
Added support to pass an include script as first argument to the tinker command. Allows usage like this
include
php artisan tinker path/to/tinker/script.php
script.php
$environment = app()->environment(); $output = new Symfony\Component\Console\Output\ConsoleOutput(); $output->writeln("<info>Hello the app environment is `{$environment}`</info>"); $output->writeln("<comment>Did something</comment>"); $output->writeln("<error>Did something bad</error>");
@imikemiller Would you please update tinker command usage in README.md?
Added support to pass an
include
script as first argument to the tinker command. Allows usage like thisphp artisan tinker path/to/tinker/script.php
script.php