Skip to content

Instantly share code, notes, and snippets.

@Scemist
Last active August 11, 2022 11:59
Show Gist options
  • Save Scemist/b57d185f19bf35fbd48a9141790d1b09 to your computer and use it in GitHub Desktop.
Save Scemist/b57d185f19bf35fbd48a9141790d1b09 to your computer and use it in GitHub Desktop.
Laravel Init Project

Init a Project

'Berlin' is a example of the name of project. 'Bootstrap' is a example of the ui framework used.

  • laravel new berlin
  • Create the database in your DBMS
  • Put the database credentials in .env file
  • You need enter in project now: cd berlin

  • composer require laravel/ui
  • If you want, you can run php artisan ui --help now
  • php artisan ui bootstrap --auth
  • npm install
  • npm run dev (sometimes two times)

  • php artisan migrate

Mainteance

Sometimes, we need to update our depedences and projects

  • composer self-update will not change project, but will update the Composer
  • composer update This will update all dependences of composer.json including the self Laravel Framework
  • npm update This will update all dependences of package.json
  • In https://windows.php.net/download you can download the Non Thread Safe php and install to update
  • git update-git-for-windows to update git

Laravel Caches

php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment