mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
Merge pull request #338 from lbausch/discussion_validation
Add validation to limit discussion title length
This commit is contained in:
commit
4033319ed0
2
src/Core/Discussions/Discussion.php
Executable file → Normal file
2
src/Core/Discussions/Discussion.php
Executable file → Normal file
|
@ -46,7 +46,7 @@ class Discussion extends Model
|
|||
* @var array
|
||||
*/
|
||||
protected $rules = [
|
||||
'title' => 'required',
|
||||
'title' => 'required|max:80',
|
||||
'start_time' => 'required|date',
|
||||
'comments_count' => 'integer',
|
||||
'participants_count' => 'integer',
|
||||
|
|
Loading…
Reference in New Issue
Block a user