FEATURE: add redirect after successful user registration

This commit is contained in:
Michal Kváček
2016-01-22 12:45:17 +01:00
parent 1ca787e482
commit 39855bdbfd
2 changed files with 7 additions and 2 deletions
@@ -62,6 +62,10 @@ class UserManagement extends Controller
// store user into database
$user->save();
// @todo add some redirect, inform user etc.
// refresh page with information about successfull registration
return redirect()
->route('users.new')
->with('message', trans('admin/userManagement.registrationSuccessfull'));
}
}
+2 -1
View File
@@ -8,6 +8,7 @@ return [
'role_admin' => 'Admin',
'role_editor' => 'Editor',
'role_visitor' => 'Visitor',
'register' => 'Create user'
'register' => 'Create user',
'registrationSuccessfull' => 'New user successfully added.'
];