for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\Html\Elements;
use Spatie\Html\BaseElement;
class Form extends BaseElement
{
protected $tag = 'form';
/**
* @param string|null $action
*
* @return static
*/
public function action($action)
return $this->attribute('action', $action);
}
* @param string|null $method
public function method($method)
return $this->attribute('method', $method);
* @param bool $novalidate
public function novalidate($novalidate = true)
return $novalidate
? $this->attribute('novalidate')
: $this->forgetAttribute('novalidate');
public function acceptsFiles()
return $this->attribute('enctype', 'multipart/form-data');