protected function compileAction($action)
    {
        if (is_null($action)) {
            return $this->attributes;
        }

        if (is_string($action) || $action instanceof Closure) {
            $action = ['uses' => $action];
        }

        return array_merge($this->attributes, $action);
    }
protected function compileAction($action)
    {
        if (is_null($action)) {
            return $this->attributes;
        }

        if (is_string($action) || $action instanceof Closure) {
            $action = ['uses' => $action];
        }

        return array_merge($this->attributes, $action);
    }
protected function compileAction ( $ action ) { if ( is_null ( $ action ) ) { return $ this -> attributes ; } if ( is_string ( $ action ) || $ action instanceof Closure ) { $ action = [ 'uses' => $ action ] ; } return array_merge ( $ this -> attributes , $ action ) ; }
Compile the action into an array including the attributes.

@param  \Closure|array|string|null  $action
@return array
Compile the action into an array including the attributes .