mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +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
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $rules = [
|
protected $rules = [
|
||||||
'title' => 'required',
|
'title' => 'required|max:80',
|
||||||
'start_time' => 'required|date',
|
'start_time' => 'required|date',
|
||||||
'comments_count' => 'integer',
|
'comments_count' => 'integer',
|
||||||
'participants_count' => 'integer',
|
'participants_count' => 'integer',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user