Skip to content

Instantly share code, notes, and snippets.

@johanvanhelden
Last active October 5, 2017 12:54
Show Gist options
  • Save johanvanhelden/6f3e7c3dd419fb3c542b2fa41485db6c to your computer and use it in GitHub Desktop.
Save johanvanhelden/6f3e7c3dd419fb3c542b2fa41485db6c to your computer and use it in GitHub Desktop.
Laravel ide helpers generator bash alias for Dockerhero
## Simply add this function to your .bash_aliases and run ideHelpers in the root of your project.
ideHelpers() {
project=`basename $PWD`
docker exec -i --user=dockerhero dockerhero_workspace bash -c "cd /var/www/projects/$project && ./artisan ide-helper:generate"
docker exec -i --user=dockerhero dockerhero_workspace bash -c "cd /var/www/projects/$project && ./artisan ide-helper:meta"
#due to atom-ide-ui and ide-php, this file is now unwanted - so let's delete it instead.
#docker exec -i --user=dockerhero dockerhero_workspace bash -c "cd /var/www/projects/$project && ./artisan ide-helper:models -n"
docker exec -i --user=dockerhero dockerhero_workspace bash -c "cd /var/www/projects/$project && rm -f _ide_helper_models.php"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment