Looking to hire Laravel developers? Try LaraJobs

robo-laravel maintained by imi

Description
Laravel Tasks for Robo task runner
Last update
2020/12/01 11:33 (dev-master)
License
Links
Downloads
126

Comments
comments powered by Disqus

Robo Wrapper for Laravel

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();