mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
oauth response array
This commit is contained in:
@@ -16,4 +16,14 @@ class Topic extends NexusModel
|
||||
{
|
||||
return $this->belongsTo(Forum::class. 'forumid');
|
||||
}
|
||||
|
||||
public function firstPost()
|
||||
{
|
||||
return $this->belongsTo(Post::class, "firstpost");
|
||||
}
|
||||
|
||||
public function lastPost()
|
||||
{
|
||||
return $this->belongsTo(Post::class, "lastpost");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user