private static function prepareProperties($model, $classOrCallable)
    {
        $callable = null;
        $class = $model;

        if (is_object($classOrCallable) && $classOrCallable instanceof \Closure) {
            $callable = $classOrCallable;
        } elseif (is_string($classOrCallable)) {
            $class = $classOrCallable;
        }

        return [$model, $class, $callable];
    }
private static function prepareProperties($model, $classOrCallable)
    {
        $callable = null;
        $class = $model;

        if (is_object($classOrCallable) && $classOrCallable instanceof \Closure) {
            $callable = $classOrCallable;
        } elseif (is_string($classOrCallable)) {
            $class = $classOrCallable;
        }

        return [$model, $class, $callable];
    }
private static function prepareProperties ( $ model , $ classOrCallable ) { $ callable = null ; $ class = $ model ; if ( is_object ( $ classOrCallable ) && $ classOrCallable instanceof \ Closure ) { $ callable = $ classOrCallable ; } elseif ( is_string ( $ classOrCallable ) ) { $ class = $ classOrCallable ; } return [ $ model , $ class , $ callable ] ; }
Prepares the model, class, and callable for the instance.

@param Model to query for
@param mixed Class/Callable to customize query/data/logic (optional)

@return array Model, class, and callable
Prepares the model class and callable for the instance .