hookable icon indicating copy to clipboard operation
hookable copied to clipboard

Laravel Eloquent hooks system

Results 8 hookable issues
Sort by recently updated
recently updated
newest added

Laravel 7.x introduced the following change https://github.com/laravel/framework/pull/30934 allowing for the feature https://laravel.com/docs/7.x/queries#subquery-where-clauses This currently breaks parameter grouping when using eloquence due to the where() function passing `=` as the default...

The `call_user_func_array` function has been slightly changed on PHP 8 — it supports named arguments now and interprets assoc arrays like them. Also, calling parent methods now for some reason...

Step to reproduce the problem: pass only 2 parameters to where method, the second one must be a string containing a valid SQL operator. Something like this: `$model->where('id', '');` This...

There's a conflict with laratrust because this library overrides `setAttribute` and doesn't return the instance of the model (`$this`) at the end. I'm not quite sure if we can easily...

This adds support for translating column names when they are used in a groupBy call. Related PRs: Hookable: `https://github.com/jarektkaczyk/hookable/pull/21` Mappable: `https://github.com/jarektkaczyk/eloquence-mappable/pull/3`

It seems that hooks are being duplicated in the pipeline for models that extend a base class that includes the Eloquence traits. As an example creating a base model and...

Hi, I'd love to see some hooks for proper relations mapping (i. e. map foreign keys) in combination with your Eloquence package. Would you accept pull requests here to add...