flipboxstudio / lumen-generator

A Lumen Generator You Are Missing
https://packagist.org/packages/flipbox/lumen-generator
MIT License
823 stars 126 forks source link

Support for include #34

Closed imikemiller closed 6 years ago

imikemiller commented 6 years ago

Added support to pass an include script as first argument to the tinker command. Allows usage like this

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>");
joelhy commented 6 years ago

@imikemiller Would you please update tinker command usage in README.md?