Skip to content

Commit 78ec5bb

Browse files
committed
Resolve static calls.
1 parent 6a93439 commit 78ec5bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Repositories/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public static function resolveWith($model)
378378
*/
379379
public static function __callStatic($method, $parameters)
380380
{
381-
return (new static)->$method(...$parameters);
381+
return app(static::class)->$method(...$parameters);
382382
}
383383

384384
/**

0 commit comments

Comments
 (0)