You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
417 B
PHTML

6 years ago
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Thread extends Model
{
6 years ago
private $creator_name;
/**
* Get the creator of the thread.
*/
public function creator() {
return $this->belongsTo('App\User', 'thread_creator_id');
}
/**
* Get the tags for the thread.
*/
public function tags() {
return $this->belongsToMany('App\Tag');
}
6 years ago
}