Skip to content

Commit f99e92e

Browse files
committed
Fixed tests
1 parent f9acdff commit f99e92e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

core/src/Models/Base.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@
3030
*/
3131
abstract class Base extends Model
3232
{
33+
/**
34+
* Prevent instantiation of abstract Base class by Laravel's HasCollection trait.
35+
*
36+
* @return class-string|null
37+
*/
38+
public function resolveCollectionFromAttribute()
39+
{
40+
return null;
41+
}
42+
43+
3344
/**
3445
* Get the current timestamp in seconds precision.
3546
*

0 commit comments

Comments
 (0)