protected function buildFluentAttributes($name, $callback = null): array
    {
        $label = $name;

        if (! \is_string($label)) {
            $callback = $label;
            $name = '';
            $label = '';
        } elseif (\is_string($callback)) {
            $name = Str::lower($callback);
            $callback = null;
        } else {
            $name = Str::lower($name);
            $label = Str::humanize($name);
        }

        return [$label, $name, $callback];
    }
protected function buildFluentAttributes($name, $callback = null): array
    {
        $label = $name;

        if (! \is_string($label)) {
            $callback = $label;
            $name = '';
            $label = '';
        } elseif (\is_string($callback)) {
            $name = Str::lower($callback);
            $callback = null;
        } else {
            $name = Str::lower($name);
            $label = Str::humanize($name);
        }

        return [$label, $name, $callback];
    }
protected function buildFluentAttributes ( $ name , $ callback = null ) : array { $ label = $ name ; if ( ! \ is_string ( $ label ) ) { $ callback = $ label ; $ name = '' ; $ label = '' ; } elseif ( \ is_string ( $ callback ) ) { $ name = Str :: lower ( $ callback ) ; $ callback = null ; } else { $ name = Str :: lower ( $ name ) ; $ label = Str :: humanize ( $ name ) ; } return [ $ label , $ name , $ callback ] ; }
Build basic name, label and callback option.

@param  mixed  $name
@param  mixed  $callback

@return array
Build basic name label and callback option .