3
I do a project in Laravel 5.1 and use the XAMPP and all settings as database this site,(home computer) etc. Only I went up (push) for Github this project only when I go on the work PC I clone the project and it doesn’t work logical.
Why not have the database in this case I have to configure the file .env
? And recreate the database? And have some other file I have to configure?
Bro, if you’re actually pulling the configs from . env is just that, change it as needed, create the bd and run the migrate.
– Raylan Soares
php Artisan make:migrate type so?
– Everson Souza de Araujo
php Artisan migrate
– Raylan Soares
I noticed that the file . env when I gave a push did not come, I had to recreate
– Everson Souza de Araujo
usually it doesn’t even go git in push, ai you use .env.example to create your . env in the place that will work
– Raylan Soares
That’s why people have to start using migrate, rather than simply making a "dumpling" from Phpmyadmin
– Wallace Maxters
@Raylan Soares thank you in this case when doing the configuration of the bank instead of using the . env, I use .env.example, and what about the app_key? file I paste the file . env?
– Everson Souza de Araujo
no, you will copy ".env.example" and rename the copy to ". env" and fill in the data
– Raylan Soares
how much key I think q just give a "php Artisan key:generate"
– Raylan Soares
thanks for the help
– Everson Souza de Araujo