Posts by Biachel Antonio • 1 point
1 post
-
-2
votes2
answers1661
viewsA: Laravel: Cannot add Foreign key Constraint
To create a foreign key that accepts the null value you must add nullable() before constrained(), as below: Schema::create('rooms', function (Blueprint $table) { $table->id();…