Owl\Http\Requests\ItemStoreRequest::rules PHP Method

rules() public method

Get the validation rules that apply to the request.
public rules ( ) : array
return array
    public function rules()
    {
        return ['title' => 'required|max:255', 'tags' => 'alpha_comma|max:64', 'body' => 'required', 'published' => 'required|numeric'];
    }
ItemStoreRequest