socialAccounts() публичный Метод

Get the social account associated with this user.
public socialAccounts ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Результат Illuminate\Database\Eloquent\Relations\HasMany
Пример #1
0
 /**
  * Remove the given user from storage, Delete all related content.
  * @param User $user
  */
 public function destroy(User $user)
 {
     $user->socialAccounts()->delete();
     $user->delete();
 }