1 C:\laravel8 elation\vendor\laravel\framework\src\Illuminate\Database\Connection.php:527 PDOException::("SQLSTATE[HY000]: General error: 1005 Can't create table `relation`.`mobiles` (errno: 150 "Foreign key constraint is incorrectly formed")") 2 C:\laravel8 elation\vendor\laravel\framework\src\Illuminate\Database\Connection.php:527 PDOStatement::execute() its erorr generate when i set forigen key set Schema::create('mobiles', function (Blueprint $table) { $table->id(); $table->string('model'); $table->unsignedBigInteger('customer_id'); $table->foreign('customer_id')->references('id')->on('customers'); $table->timestamps(); }); the second table code is public function up() { Schema::create('customers', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('email'); $table->timestamps(); }); } PDOException::("SQLSTATE[HY000]: General error: 1005 Can't create table `relation`.`mobiles` (errno: 150 "Foreign key constraint is incorrectly formed")") its error