ardent icon indicating copy to clipboard operation
ardent copied to clipboard

Self-validating, secure and smart models for Laravel's Eloquent ORM

Results 102 ardent issues
Sort by recently updated
recently updated
newest added

I've started working on an automated test suite for Ardent using PHPUnit and Mockery (same as used in Laravel). Since [`LaravelBook\Ardent\Ardent`](https://github.com/laravelbook/ardent/blob/master/src/LaravelBook/Ardent/Ardent.php) is a large class, I've decided to split the...

RFC

Similar to https://github.com/laravel-ardent/ardent/issues/296 I am experiencing problems with Ardent's save function. It works for me when I do this, but surely there is a better way: (Maybe call Arduent's save...

at Ardent.php line 17: use Illuminate\Validation\Factory as ValidationFactory; line 19: use Symfony\Component\Translation\Translator; line 512: $translator = new Translator(); line 519: self::$validationFactory = new ValidationFactory($translator); the Illuminate\Validation\Factory needs a Illuminate\Contracts\Translation\Translator Object,...

I'm using soft-delete with my `currency` model and would like to enforce foreign key integrity by checking that `regions` hasMany relationship is empty before any currency is allowed to be...

Hi people, Is there any way to access $this->id in afterCreate() hook? I need to get the ID of the currently created row. Thanks in advance!

If foreingKey is not specified belongsTo doesn't find the right function to determine it. in version 3.0.0 this was the code: ``` php $backtrace = debug_backtrace(false); $caller = ($backtrace[1]['function'] ==...

As it stands, the example provided in the README (`'email' => 'required|email|unique',`) doesn't work because `buildUniqueExclusionRules` is searching specifically for `unique:`, ending with a colon. Presumably this isn't intentional, based...

I'm afraid my post won't be all that useful, more of an FYI. I use ardent instead of eloquent on most of my models, and 2.5.0 wouldn't even access my...

Laravel related
Bug?

I am using the Ardent 3 on Laravel 5.1.42 framework, and i get error ReflectionException in Container.php line 741 in controller with namespace.. e.g : app/Http/Controllers/Admin/PostController., But if i user...

I am using the latest Ardent version with entrust 5.2.x-dev on Laravel 5.2 framework Entrust with Laravel Ardent is having a conflict and the following error message is displayed: Declaration...