Skip to content

Commit 0db83b4

Browse files
committed
Allow Laravel 5 version for threads
1 parent 8414e04 commit 0db83b4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/Lio/Comments/CommentPresenter.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,15 @@ public function laravel_version()
6464
if ($this->resource->laravel_version == 3) {
6565
return '[L3]';
6666
}
67+
6768
if ($this->resource->laravel_version == 4) {
6869
return '[L4]';
6970
}
70-
}
7171

72-
// ------------------- //
72+
if ($this->resource->laravel_version == 5) {
73+
return '[L5]';
74+
}
75+
}
7376

7477
private function convertMarkdown($content)
7578
{

app/Lio/Forum/Threads/ThreadForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ThreadForm extends FormModel
1010
'body' => 'required',
1111
'tags' => 'required|max_tags:3',
1212
'is_question' => 'in:0,1',
13-
'laravel_version' => 'required|in:0,3,4',
13+
'laravel_version' => 'required|in:0,3,4,5',
1414
];
1515

1616
protected function beforeValidation()

0 commit comments

Comments
 (0)