From 26b8d2b92190de6ce4bbf6ccbb3f1a4f1a735d1d Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Tue, 12 Nov 2019 21:49:43 +0100 Subject: Introduce the NewsComments model --- src/Models/NewsComment.php | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/Models/NewsComment.php (limited to 'src/Models/NewsComment.php') diff --git a/src/Models/NewsComment.php b/src/Models/NewsComment.php new file mode 100644 index 00000000..aed1926a --- /dev/null +++ b/src/Models/NewsComment.php @@ -0,0 +1,47 @@ +belongsTo(News::class); + } +} -- cgit v1.2.3-70-g09d2 From 17192a2c412a6f5c4d8c10d8d25ef1a680bbce01 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Tue, 12 Nov 2019 22:04:39 +0100 Subject: Adapt code style to PSR-12 --- db/migrations/2019_11_12_000000_create_news_comments_table.php | 1 + src/Models/News.php | 1 + src/Models/NewsComment.php | 1 + tests/Unit/Models/NewsCommentsTest.php | 1 + 4 files changed, 4 insertions(+) (limited to 'src/Models/NewsComment.php') diff --git a/db/migrations/2019_11_12_000000_create_news_comments_table.php b/db/migrations/2019_11_12_000000_create_news_comments_table.php index cb7065b8..00cf99b2 100644 --- a/db/migrations/2019_11_12_000000_create_news_comments_table.php +++ b/db/migrations/2019_11_12_000000_create_news_comments_table.php @@ -1,4 +1,5 @@