I started a new project using laravel^6.2
using the laravel new myapp
command.
I edit then my .env
file to connect to my local database:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=8082
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=root
I decide then to migrate
the default database structure from laravel. when I say default structure I'm talking about the users
migration which is already created from the beginning present in the 2014_10_12_000000_create_users_table.php
file:
<?php
// *** This has been generated from `laravel new myapp` ***
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}
So I run the php artisan migrate
command and then something unexpected happens. Indeed, after that the terminal doesn't do anything as if it was on break. I'm thinking maybe the command takes a while to execute but after several tries that lasted about ten minutes, nothing happens.
So I decide to consult the logs but absolutely nothing's written down, it's totally empty.
So I'm trying to execute php artisan cache:clear
and start over but the result is the same: No error messages and nothing happens.
I know the question has been asked here before, but no answer really came up.
Has somebody an idea what I have missed ?