コード例 #1
0
ファイル: UserObserver.php プロジェクト: alchemyphp/gate
 public function created(User $user)
 {
     // Create a new profile and associate it.
     $user->profile()->save(new Profile());
     event(new UserRegistered($user));
 }