public handle ( |
||
$command | ||
Результат |
public function handle(AddIdentityCommand $command)
{
$data = ['user_id' => $command->userId, 'extern_uid' => $command->data['extern_uid'], 'provider_id' => $command->data['provider_id'], 'nickname' => $command->data['nickname'], 'created_at' => Carbon::now()->toDateTimeString()];
// Create the identify
$identify = Identity::create($data);
Session::pull('connect_data');
return $identify;
}