Version of laravel project 5.1

3

I do a project in Laravel 5.1 and I use XAMPP and all the settings like this local database, (home computer) etc. But I pushed push ) to Github this project only when I go on the work PC I clone the project and it does not work logically.

Why do not you have the database in this case I have to configure the file .env ? And re-create the database? And is there any more files I have to configure?

    
asked by anonymous 25.04.2016 / 14:50

1 answer

3

The .env file is only on the machine we are working on, when we send the project to git this file is not usually sent.

To set up your application in another workplace, do the following:

  • Clone your git project.
  • Create a copy of .env.example , rename it to .env and fill in the local data.
  • Create your database.
  • run a migrate: php artisan migrate .
  • Obs: To generate a new key just run the command php artisan key:generate .

        
    25.04.2016 / 15:45