for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Code4\Forms;
class TestForm extends AbstractForm {
protected $messages = [
'required' => 'Pole :attribute jest wymagane'
];
protected $fieldNames = [
'name' => 'Nazwa firmy'
protected $customRules = [
'name' => 'customValidate'
//Override construct to load config
public function __construct() {
parent::__construct();
$this->loadFromConfigYaml(__DIR__ . '/../config/test.yml');
}
//Custom validation class
public function customValidate($request) {
$request
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return null;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.