I have an existing Laravel project I want to clone from GitHub.
I normally run Laravel on Homestead/Vagrant.
But this time I need to run it on Mamp.
I already cloned the project into my htdocs folder.
When I click to see my website, I see Index of/ then all the files.
Index of/
.env.example
.git/
.gitattributes
.gitignore
.phpintel/
app/
artisan
bootstrap/
composer.json
composer.lock
config/
database/
gulpfile.js
package.json
phpunit.xml
public/
readme.md
resources/
scratch3.php
server.php
storage/
tests/
What do I need to do/change/configure so my Laravel website works properly.
I'm on a Mac.
According to my experience, there are some steps for setting up an existing Laravel project as follows:
composer install
.env.example
file to .env
.env
and change a database connection information and save filephp artisan key:generate
php artisan migrate
composer dump-autoload
php artisan serve
or create a shortcut in a public
directory or Mamp and link it to public folder of your Laravel project.Hope this helps, any comment is welcome.
if you click your website and you see your root you probably need to configure your settings a bit, maybe this will help How to get htaccess to work on MAMP