New way to add foreign key $table->foreignId('user_id')->nullable()->constrained('authors') //->referecens("id")->on('authors') $table->foreignId('pass model here')->nullable()->constrained('authors')