ok

Mini Shell

Direktori : /home2/selectio/www/3-idiots/vendor/amirami/localizator/src/Collections/
Upload File :
Current File : /home2/selectio/www/3-idiots/vendor/amirami/localizator/src/Collections/DefaultKeyCollection.php

<?php

namespace Amirami\Localizator\Collections;

use Amirami\Localizator\Contracts\Translatable;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;

class DefaultKeyCollection extends Translatable
{
    /**
     * @return Collection
     */
    public function sortAlphabetically(): Collection
    {
        return $this->sortKeys(SORT_NATURAL | SORT_FLAG_CASE);
    }

    /**
     * @param mixed $items
     * @return static
     */
    public function merge($items): self
    {
        return parent::merge(Arr::dot($items));
    }
}

Zerion Mini Shell 1.0