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
meigwilym said:
Install with composer.
A-ha. What's the purpose of the installer then? When is the right time to use it?
Thanks
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community