feat: add description field for a contact (#1910)

This commit is contained in:
Régis Freyd
2018-10-11 23:15:15 -04:00
committed by GitHub
parent 4a1252d1ce
commit 980abd14e8
15 changed files with 60 additions and 50 deletions
@@ -271,6 +271,7 @@ class ContactsController extends Controller
'firstname' => 'required|max:50',
'lastname' => 'max:100',
'nickname' => 'max:100',
'description' => 'max:240',
'gender' => 'required',
'file' => 'max:10240',
'birthdate' => 'required|string',
@@ -290,6 +291,7 @@ class ContactsController extends Controller
}
$contact->gender_id = $request->input('gender');
$contact->description = $request->input('description');
$contact->nickname = $request->input('nickname', null);
if ($request->file('avatar') != '') {