diff --git a/resources/js/Models/Model.ts b/resources/js/Models/Model.ts index fbae03c69..27c93f3e5 100644 --- a/resources/js/Models/Model.ts +++ b/resources/js/Models/Model.ts @@ -42,10 +42,10 @@ export abstract class Model extends BaseModel { * Just an alias to the get() method. * * Returns all the instances of the model. - */ // @ts-ignore - static all(): Promise>> { + */ + static all(): Promise> { // @ts-ignore - return this.get(); + return this.with(this.relationships).get(); } setAttributes(attributes: Record): void {