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

    {

        return array_diff(

            array_keys($columns),

            [

                'id',

                'deleted_at',

                'created_at',

                'updated_at',

                'remember_token',

                'softdeletes',

                'softdeletestz',

            ]

        );

    }



    private function hiddenColumns(array $columns)
<?php         $className = $this->getClassName($controller);

        $slug = Str::kebab($controller->prefix());



        foreach (array_diff($methods, Controller::$resourceMethods) as $method) {

            $routes .= $this->buildRouteLine($className, $slug, $method);

            $routes .= PHP_EOL;

        }
<?php                 : sprintf("Route::resource('%s', %s)", $slug, $className);



            $missing_methods = $controller->isApiResource()

                ? array_diff(Controller::$apiResourceMethods, $resource_methods)

                : array_diff(Controller::$resourceMethods, $resource_methods);



            if (count($missing_methods)) {
<?php             $missing_methods = $controller->isApiResource()

                ? array_diff(Controller::$apiResourceMethods, $resource_methods)

                : array_diff(Controller::$resourceMethods, $resource_methods);



            if (count($missing_methods)) {

                if (count($missing_methods) < 4) {
<?php     private function visibleColumns(Model $model)

    {

        return array_diff(

            array_keys($model->columns()),

            [

                'password',

                'remember_token',

            ]

        );

    }

}