-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
xiaomlove
committed
Jun 18, 2022
1 parent
c7b75b8
commit 88a92f7
Showing
9 changed files
with
107 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace App\Models; | ||
|
||
|
||
class Forum extends NexusModel | ||
{ | ||
protected $fillable = ['sort', 'name', 'description', 'minclassread', 'minclasswrite', 'postcount', 'topiccount', 'minclasscreate', 'forid']; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace App\Models; | ||
|
||
|
||
class Topic extends NexusModel | ||
{ | ||
protected $fillable = ['userid', 'subject', 'locked', 'forumid', 'firstpost', 'lastpost', 'sticky', 'hlcolor', 'views']; | ||
|
||
public function user() | ||
{ | ||
return $this->belongsTo(User::class, 'userid'); | ||
} | ||
|
||
public function forum() | ||
{ | ||
return $this->belongsTo(Forum::class. 'forumid'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
return [ | ||
'topic' => [ | ||
'replied_notify_subject' => 'The topic has a new reply', | ||
'replied_notify_body' => 'Your topic::topic_subject has a new reply.', | ||
], | ||
'post' => [ | ||
'edited_notify_subject' => 'Post reply was modified', | ||
'edited_notify_body' => 'Your reply to topic: :topic_subject was modified by: :editor.', | ||
] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
return [ | ||
'topic' => [ | ||
'replied_notify_subject' => '帖子有了新回复', | ||
'replied_notify_body' => '你的帖子::topic_subject 收到了新的回复。', | ||
], | ||
'post' => [ | ||
'edited_notify_subject' => '帖子回复被修改', | ||
'edited_notify_body' => '你在帖子::topic_subject 的回复被::editor 修改。', | ||
] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
return [ | ||
'topic' => [ | ||
'replied_notify_subject' => '帖子有了新回復', | ||
'replied_notify_body' => '你的帖子::topic_subject 收到了新的回復。', | ||
], | ||
'post' => [ | ||
'edited_notify_subject' => '帖子回復被修改', | ||
'edited_notify_body' => '你在帖子::topic_subject 的回復被::editor 修改。', | ||
] | ||
]; |