From 395f6706d6fe7b59df5caa4158d5e8ff268368ef Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Mon, 30 Dec 2019 01:44:09 +0100 Subject: Message: Add coverage, fix method hints --- db/migrations/2019_11_25_000000_create_messages_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db') diff --git a/db/migrations/2019_11_25_000000_create_messages_table.php b/db/migrations/2019_11_25_000000_create_messages_table.php index b34a6c19..e2c0f253 100644 --- a/db/migrations/2019_11_25_000000_create_messages_table.php +++ b/db/migrations/2019_11_25_000000_create_messages_table.php @@ -75,7 +75,7 @@ class CreateMessagesTable extends Migration 'messages', function (Blueprint $table) { $table->increments('id'); - $this->references($table, 'users', 'user_id'); + $this->referencesUser($table); $this->references($table, 'users', 'receiver_id'); $table->boolean('read')->default(0); $table->text('text'); -- cgit v1.2.3-70-g09d2