for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Telkins\Validation\Tests\TestRuleSets;
use Telkins\Validation\AbstractResourceRuleSet;
class PostRuleSet extends AbstractResourceRuleSet
{
protected function provideRules() : array
return [
'subject' => [
'string',
'max:255',
],
'body' => [
'max:1024',
];
}
protected function provideCreationRules() : array
'author_id' => [
'required',
protected function provideUpdateRules() : array
'reason' => [