Move code to event handlers instead of registration routine.

This commit is contained in:
James Cole
2016-03-28 19:50:24 +02:00
parent 70c8a524cd
commit cc88d5962e
6 changed files with 168 additions and 29 deletions

View File

@@ -31,6 +31,7 @@ class UserRepository implements UserRepositoryInterface
{
$admin = Role::where('name', 'owner')->first();
$user->attachRole($admin);
$user->save();
return true;
}