Após a instalação, que foi o artigo anterior postado neste blog, agora nós vamos configurar a conexão com o banco de dados MySQL.
Edite as seguintes linhas no arquivo ‘.env’ que está na raiz do projeto:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=nome_da_base_de_dados
DB_USERNAME=nome_do_usuário
DB_PASSWORD=senha_de_acesso
Nota: É necessário já existir no banco de dados o usuário e a base de dados.
Agora vamos testar a conexão do banco de dados através do prompt de comando:
php artisan migrate:install
Após executar esse comando, você deverá ver a seguinte mensagem: Migration table created successfylly. Vá no seu MySQL e veja se a tabela ‘migrations’ foi criada.
I loved as much as you’ll receive carried out right here.
The sketch is tasteful, your authored material stylish.
nonetheless, you command get got an nervousness over that
you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly a
lot often inside case you shield this hike.
I was curious if you ever considered changing the layout of your website?
Its very well written; I love what youve got to say.
But maybe you could a little more in the way of content so people could connect with it better.
Youve got an awful lot of text for only having one
or two images. Maybe you could space it out better?