Skip to content

Instantly share code, notes, and snippets.

@sanampatel
Created July 29, 2019 19:45
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sanampatel/73b4cd5a96ce83a23b22a77b4b346534 to your computer and use it in GitHub Desktop.
Save sanampatel/73b4cd5a96ce83a23b22a77b4b346534 to your computer and use it in GitHub Desktop.
Commands to run after Laravel git clone or after project migration
#Clone your project from git
composer install
npm install
copy .env.example .env
OR
cp .env.example .env
php artisan key:generate
php artisan migrate # First edit .env file
composer dump-autoload
# All commands in one line
composer install && npm install && cp .env.example .env && php artisan key:generate && composer dump-autoload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment