Skip to content

Instantly share code, notes, and snippets.

@qa1
Last active October 20, 2021 07:38
Show Gist options
  • Save qa1/e6df203a19f7db7498b731318dfe2a12 to your computer and use it in GitHub Desktop.
Save qa1/e6df203a19f7db7498b731318dfe2a12 to your computer and use it in GitHub Desktop.
#composer create-project --prefer-dist laravel/laravel blog
composer global require "laravel/installer=~1.1"
# ~/.composer/vendor/bin
laravel new projectName
composer require laravel/ui
php artisan ui vue --auth
php artisan migrate
npm install && npm run dev
> got install cannot find module 'semver' error
# sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* ~/.npm
# sudo rm -rf /usr/local/lib/node*
# sudo rm -rf /usr/local/bin/node*
# sudo rm -rf /usr/local/include/node*
# sudo apt-get purge nodejs npm && apt autoremove
# sudo apt-get install nodejs npm
> got version node error
# npm cache clean -f
# npm install -g n
# n stable && PATH="$PATH"
sudo apt autoremove
php artisan make:auth
php artisan thinker
App\Models\User::factory()->create()
php artisan make:migration create_products_table --create=products
php artisan make:controller ProductController --resource --model=Product
php artisan make:model Todo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment