validating
validating copied to clipboard
Automatically validating Eloquent models for Laravel
Need to add a check to getModelAttributes if the value is isEncryptedCastable
Hey, after digging a while on a weird issue, here what I get : Model rule: ``` 'name' => [ 'bail', 'required', 'string', 'max:255', (new Rules\Unique('folders', 'name')) ->ignore($this->id) ->where('parent_id', $this->parent_id)...
Hello, me again here! Below follows the performValidation() function from ValidatingTrait. ```php /** * Validate the model against it's rules, returning whether * or not it passes and setting the...
These changes will allow using this package with Lumen with disabled facades. Tested with the latest 5.5, not sure about older versions.
Issue #177 The attributesToArray method already returns attributes that are mutated and converts Carbon dates to strings. Plus, it adds appended accessors and applies type casting.
I have model with accessors, originaly I have integers in validated model properties, but when i accessing it, model returns me words represents that integers. Validating trait validating accessors result...
I've just noticed that _saveOrReturn()_ raises an exception if _$throwValidationExceptions_ is set true. The documentation suggests that the whole purpose of this function is to avoid throwing an exception, even...
It would be nice if I could do the following with my models that use the `ValidatingTrait`: ```php function store(Request $request) { return Post::createOrFail($request->all()); } function update(Request $request, Post $post)...
Not sure if I'm doing something wrong or if this is a bug or intentional... But when I call $model->save() on a model that uses the ValidatingTrait, the eloquent.validating event...
Any plans to support Lumen with `$app->withFacades();` disabled in `/bootstrap/app.php` and referencing the libraries manually (e.g. `Input` and `Validator`)?