Last active
February 13, 2017 01:21
-
-
Save bigbeno37/9bc878757deb552289b1dacb64d29266 to your computer and use it in GitHub Desktop.
Install Laravel IDE Helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e "\x1B[01;95mWhere was your Laravel project installed? (Use a full path such as /home/ubuntu/projects/blog/)\x1B[0m" | |
read PATH | |
cd $PATH | |
echo -e "\x1B[01;95mHas Laravel IDE Helper been installed? (Y/n)\x1B[0m" | |
read INSTALLED | |
if [ $INSTALLED = "n" ] || [ $INSTALLED = "N" ]; then | |
echo -e "\x1B[01;93mInstalling...\x1B[0m" | |
composer require barryvdh/laravel-ide-helper | |
echo -e "\x1B[01;93mAdd this to providers array in app.php in config\x1B[0m" | |
echo -e "\x1B[01;93mBarryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class\x1B[0m" | |
echo -e "\x1B[01;93mAnd once completed, press any key to continue...\x1B[0m" | |
read -n1 | |
php artisan clear-compiled | |
php artisan ide-helper:generate | |
php artisan optimize | |
composer require doctrine/dbal | |
php artisan ide-helper:meta | |
fi | |
echo -e "\x1B[01;95mAdd support for models? (Y/n)\x1B[0m" | |
read SUPPORT | |
if [ $SUPPORT = "y" ] || [ $SUPPORT = "Y" ]; then | |
php artisan ide-helper:models | |
fi | |
echo -e "\x1B[01;92mDone!\x1B[0m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment