Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Exchanges all keys with their associated values in an array
array_flip(array $array): array
        $now Carbon::now();



        return 
array_merge(collect(array_flip($keys))->map(function () {


        })->
all(), collect($response['Responses'][$this->table])->mapWithKeys(function ($response) use ($now) {

            if (
$this->isExpired($response$now)) {
    public static function only($array$keys)

    {

        return 
array_intersect_key($arrayarray_flip((array) $keys));

    }
    public function flip()

    {

        return new static(
array_flip($this->items));

    }
    public function has($key)

    {

        
$keys array_flip(is_array($key) ? $key func_get_args());

        
$count count($keys);



        foreach (
$this as $key => $value) {
    public function hasAny($key)

    {

        
$keys array_flip(is_array($key) ? $key func_get_args());



        foreach (
$this as $key => $value) {

            if (
array_key_exists($key$keys)) {
            if (is_null($keys)) {

                yield from 
$this;

            } else {

                
$keys array_flip($keys);



                foreach (
$this as $key => $value) {

                    if (
array_key_exists($key$keys)) {
    public function without($relations)

    {

        
$this->eagerLoad array_diff_key($this->eagerLoadarray_flip(

            
is_string($relations) ? func_get_args() : $relations

        
));



        return 
$this;

    }
    protected function fillableFromArray(array $attributes)

    {

        if (
count($this->getFillable()) > && ! static::$unguarded) {

            return 
array_intersect_key($attributesarray_flip($this->getFillable()));

        }



        return 
$attributes;
    protected function getArrayableItems(array $values)

    {

        if (
count($this->getVisible()) > 0) {

            
$values array_intersect_key($valuesarray_flip($this->getVisible()));

        }



        if (
count($this->getHidden()) > 0) {
        }



        if (
count($this->getHidden()) > 0) {

            
$values array_diff_key($valuesarray_flip($this->getHidden()));

        }



        return 
$values;
        $attach array_diff_key($recordsarray_flip($detach));



        if (
count($attach) > 0) {

            
$this->attach($attach, [], false);
            $this->container->call([$this'run'], $parameters)

            : 
$this->run(...$parameters);



        
$uses array_flip(class_uses_recursive(static::class));



        if (isset(
$uses[WithoutModelEvents::class])) {

            
$callback $this->withoutModelEvents($callback);
    protected function registerApplicationPaths($handler)

    {

        
$handler->setApplicationPaths(

            
array_flip($this->directoriesExceptVendor())

        );



        return 
$this;
    protected function directoriesExceptVendor()

    {

        return 
Arr::except(

            
array_flip((new Filesystem)->directories(base_path())),

            [
base_path('vendor')]

        );

    }
    protected function setUpTraits()

    {

        
$uses array_flip(class_uses_recursive(static::class));



        if (isset(
$uses[RefreshDatabase::class])) {

            
$this->refreshDatabase();