Skip to content

Instantly share code, notes, and snippets.

View akahmet's full-sized avatar

Ahmet AK akahmet

View GitHub Profile
@akahmet
akahmet / larave_with_parameters.patch
Created July 19, 2019 12:42
Laravel eloquent patch for parameter suppport for with method
47a48,54
> * The relationships with parameters that should be eager loaded.
> *
> * @var array
> */
> protected $eagerLoadWithParameters = [];
>
> /**
537c544,553
< if (strpos($name, '.') === false) {