imi / robo-laravel
Laravel Tasks for Robo task runner
1.2.0
2018-04-20 14:32 UTC
Requires
- consolidation/robo: ^1.0.0
This package is auto-updated.
Last update: 2024-11-29 05:03:39 UTC
README
This is (currentl very thin) wrapper around laravel projects for using it in the Robo task runner.
Commands
Execute artisan
$this->taskArtisanStack()->exec($command)->run();
Shortcut for the above:
$this->_artisan($command);
Flush Caches
Adds only to the stack, so you can run additional commands
$this->taskArtisanStack()->addCacheFlush()->run();
Shortcut for the above:
$this->_artisanCacheFlush($command);
Write .env File
Writes the env file with the values from the setup. Of course you can add additional mappings as a secound parameter.
Currently RegExp replacing is done. Sooner or later we might use https://github.com/nordcode/robo-parameters for this task (which does not keep comments, that's why we use the own method)
$this->_writeEnvFile($this->askSetup());
Update IDE Helper
Needs https://github.com/barryvdh/laravel-ide-helper
$this->taskArtisanStack()->addUpdateIdeHelper()->run();