Laravel: Difference between revisions

480 bytes added ,  25 September 2019
No edit summary
Line 21: Line 21:


==Copying an existing project==
==Copying an existing project==
 
After you git pull an existing project, you will need to do the following to get it running.<br>
Note: The app key is used for encrypting cookies.<br>
Users will lose their session if the app key is regenerated in production.<br>
<syntaxhighlight lang="bash">
composer install
npm install
cp .env.example .env
# Fill in the .env config variables such as database, mail server, API keys, ...
php artisan key:generate
# Use npm run prod for production
npm run dev
</syntaxhighlight>


=Resources=
=Resources=
[https://laravel.com/docs/ Laravel Documentation]
[https://laravel.com/docs/ Laravel Documentation]
[https://laracasts.com/series/laravel-from-scratch-2018 Laravel from Scratch online course]
[https://laracasts.com/series/laravel-from-scratch-2018 Laravel from Scratch online course]