Supported Versions: PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
Computes the intersection of arrays
<?php array_intersect(array $array, array ...$arrays): array
<?php     private function hiddenColumns(array $columns)

    {

        return array_intersect(

            array_keys($columns),

            [

                'password',

                'remember_token',

            ]

        );

    }



    private function castableColumns(array $columns)
<?php             $routes .= PHP_EOL;

        }



        $resource_methods = array_intersect($methods, Controller::$resourceMethods);

        if (count($resource_methods)) {

            $routes .= $controller->isApiResource()

                ? sprintf("Route::apiResource('%s', %s)", $slug, $className)