diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php index 88e2911f59..d80c1e5dff 100755 --- a/app/Http/Controllers/UsersController.php +++ b/app/Http/Controllers/UsersController.php @@ -278,6 +278,7 @@ class UsersController extends Controller $user->activated = $request->input('activated', 0); $user->jobtitle = $request->input('jobtitle', null); $user->phone = $request->input('phone'); + $user->website = $request->input('website', null); $user->location_id = $request->input('location_id', null); $user->company_id = Company::getIdForUser($request->input('company_id', null)); $user->manager_id = $request->input('manager_id', null); diff --git a/app/Http/Transformers/UsersTransformer.php b/app/Http/Transformers/UsersTransformer.php index e6b33ab606..1910de0a7d 100644 --- a/app/Http/Transformers/UsersTransformer.php +++ b/app/Http/Transformers/UsersTransformer.php @@ -35,6 +35,7 @@ class UsersTransformer ] : null, 'jobtitle' => ($user->jobtitle) ? e($user->jobtitle) : null, 'phone' => ($user->phone) ? e($user->phone) : null, + 'website' => ($user->website) ? e($user->website) : null, 'address' => ($user->address) ? e($user->address) : null, 'city' => ($user->city) ? e($user->city) : null, 'state' => ($user->state) ? e($user->state) : null, diff --git a/app/Models/User.php b/app/Models/User.php index edc5883ef1..9155270f55 100755 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -69,6 +69,7 @@ class User extends SnipeModel implements AuthenticatableContract, CanResetPasswo 'email' => 'email|nullable', 'password' => 'required|min:6', 'locale' => 'max:10|nullable', + 'website' => 'url|nullable', ]; use Searchable; diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index 172448be09..6c9b0a4292 100755 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -273,6 +273,15 @@ + +