FramyDocumentation

Validation

Introduction

Framy got out of the box a validation component with a lot of validator as default.

Usage

Simply use the ValidationTrait where ever you need it.

class HomeController
{
    use ValidationTrait;
    
    public function index()
    {
        // is required and must be at least 12 chars long 
        $this->validate($text, "required, min:12")
    }
}

Default validators