iMi-digital / robo-laravel by imi

Laravel Tasks for Robo task runner
120
0
10
Package Data
Maintainer Username: imi
Maintainer Contact: a.menk@imi.de (iMi digital GmbH)
Package Create Date: 2017-08-29
Package Last Update: 2020-12-01
Language: PHP
License: MIT
Last Refreshed: 2024-11-23 03:01:36
Package Statistics
Total Downloads: 120
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 0
Total Watchers: 10
Total Forks: 1
Total Open Issues: 0

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