laravel collection to array without keys
xxxxxxxxxx
$pluckedRingsArr = $ringsCollection->pluck('id')->values()->toArray();
xxxxxxxxxx
collect($array)
->mapWithKeys(fn($value) => [$value => null])
->toArray();
xxxxxxxxxx
public function register()
{
$this->app->bind(Cart::class, function (Container $container) {
return new Cart($container->get(Store::class));
});
}