Scal dwie kolekcje lub tablicę
$foo = collect(Foo::all());
$bar = collect(Bar::all());
$merged = $foo->merge($bar);
Irfan
$foo = collect(Foo::all());
$bar = collect(Bar::all());
$merged = $foo->merge($bar);
$users = User::all();
$associates = Associate::all();
$userAndAssociate = $users->concat($associates);
$users = User::all();
$associates = Associate::all();
$userAndAssociate = $users->concat($associates);