ticket 123
This commit is contained in:
parent
34cd3e7672
commit
74fcf2f854
2 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ class CreateMessage extends FormRequest
|
|||
public function rules()
|
||||
{
|
||||
return [
|
||||
'message' => 'required|min:20',
|
||||
'message' => 'required|min:' . (auth()->user()->role == 1 ? '5' : '20'),
|
||||
'file_message' => 'sometimes|mimes:jpeg,jpg,png,pdf|max:2048'
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@
|
|||
<div>
|
||||
<h4>Description</h4>
|
||||
<p>{!! nl2br(e($ticket->text)) !!}</p>
|
||||
<small class="text-muted">Créer le {{ \Carbon\Carbon::parse($ticket->created_at)->format('d/m/Y à H:i') }}</small>
|
||||
<small class="text-muted">Créé le {{ \Carbon\Carbon::parse($ticket->created_at)->format('d/m/Y à H:i') }} par <b>{{ $ticket->user->name }}</b></small>
|
||||
</div>
|
||||
@if ($ticket->file !== null || $ticket->file2 !== null)
|
||||
<hr>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue