summaryrefslogtreecommitdiff
path: root/app/Discussion.php
blob: facb847a73a69a25a9051e6c8a829626a0402227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Discussion extends Model
{
	protected $table = "discussion";
	protected $fillable = [
		'article_id',
		'title',
		'source',
		'item_id',
		'source_url',
		'posted_on',
		'comments',
		'upvotes'
	];

	public function getArticle() {
		$this->belongsTo('App\Article');
	}
}