Last active
September 15, 2019 17:21
-
-
Save devarda/1713cbc4dc8c7645b34718be18af7faa to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
PROJECT_NAME="laravel-voyager" | |
laravel new $PROJECT_NAME | |
cd $PROJECT_NAME | |
git init . | |
vim .gitignore | |
git add . | |
git commit -am "fresh install" | |
composer require tcg/voyager | |
git add . | |
git commit -am "After voyager require" | |
vim .env | |
composer require --dev barryvdh/laravel-ide-helper | |
git add . | |
git commit -am "After ide-helper require" | |
php artisan ide-helper:generate | |
php artisan ide-helper:model | |
git add . | |
git commit -am "After ide-helper generate, model" | |
php artisan voyager:install | |
git add . | |
git commit -am "After voyager install" | |
php artisan voyager:install --with-dummy | |
git add . | |
git commit -am "After voyager install with dummy" | |
yarn install | |
git add . | |
git commit -am "After yarn install" | |
yarn run dev | |
git add . | |
git commit -am "After yarn dev" | |
composer require --dev "xethron/migrations-generator" orangehill/iseed | |
git add . | |
git commit -am "After migrations-generator and iseed require" | |
echo "Voyager installed" | |
# now the frontend | |
composer require pvtl/voyager-forms | |
composer dump-autoload && php artisan voyager-forms:install | |
git add . | |
git commit -am "after voyager forms require" | |
# 2.0 Require this Package in your fresh Laravel/Voyager project | |
composer require pvtl/voyager-frontend | |
# 2.1 Run the Installer | |
composer dump-autoload && php artisan voyager-frontend:install | |
git add . | |
git commit -am "after voyager frontend require" | |
# 2.3 Build the front-end theme assets | |
npm run dev | |
# 2.4 Set the Laravel search driver in your .env | |
echo "SCOUT_DRIVER=tntsearch" >> .env | |
echo "SCOUT_DRIVER=tntsearch" >> .env.example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment