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($method)
$method
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return $this->attribute('novalidate');
public function acceptsFiles()
return $this->attribute('enctype', 'multipart/form-data');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.