lots of progress
This commit is contained in:
@@ -6,5 +6,10 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Category extends Model
|
||||
{
|
||||
//
|
||||
protected $table = 'forum_categories';
|
||||
|
||||
public function threads()
|
||||
{
|
||||
return $this->hasMany(Thread::class, 'category_id', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user