Is there a validation library not based on annotat...
# announcements
r
Is there a validation library not based on annotations? Something like
Copy code
public function rules()
{
    return [
        'title' => 'required|unique:posts|max:255',
        'body' => 'required',
    ];
}