I found the error. These have to be added before the foreign key:
$table->integer('sender_id')->unsigned();
$table->integer('receiver_id')->unsigned();
Also, index is redundant, since Laravel adds it by default.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community