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);
public function novalidate()
return $this->attribute('novalidate');
public function acceptsFiles()
return $this->attribute('enctype', 'multipart/form-data');