src/Configurable.php
public function readOnly($callback = null)
    {
        if (!$callback || (is_callable($callback) && call_user_func($callback))) {
            return $this->withMeta(['readOnly' => true]);
        }
        return $this;
    }
public function readOnly($callback = null)
    {
        if (!$callback || (is_callable($callback) && call_user_func($callback))) {
            return $this->withMeta(['readOnly' => true]);
        }
        return $this;
    }
public function readOnly ( $ callback = null ) { if ( ! $ callback || ( is_callable ( $ callback ) && call_user_func ( $ callback ) ) ) { return $ this -> withMeta ( [ 'readOnly' => true ] ) ; } return $ this ; }
Set the input as disabled.

@return $this
Set the input as disabled .