Support the ongoing development of Laravel.io →
Installation Configuration
Last updated 2 years ago.
0

Install with composer.

If you have any files to ignore other than the default .gitignore, then add them to it.

Then run

git init
git add . 
git commit -m "my commit message e.g. initial commit"

Mei

Last updated 2 years ago.
0

meigwilym said:

Install with composer.

A-ha. What's the purpose of the installer then? When is the right time to use it?

Thanks

Last updated 2 years ago.
0

You can use either or whenever.

It's a bit easier to remember laravel new blog instead of composer create-project laravel/laravel blog

Composer goes to the github repo, the laravel installer goes and pulls down a zip file from a server I assume Taylor controls.

The .gitignore that comes with laravel is pretty good. You might also add in the app/storage/[folders] so it doesn't add your error logs and view caches to your repository.

Default .gitignore

/bootstrap/compiled.php
/vendor
composer.phar
composer.lock
.env.local.php
.env.php
.DS_Store
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

quique quique Joined 13 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.