From bfebf88ef6a3d4baacb9ed66a3ae0916cac37cc7 Mon Sep 17 00:00:00 2001 From: Tiago Fernandes Date: Thu, 21 Apr 2022 14:06:34 +0100 Subject: [PATCH] https://github.com/laravel/framework/issues/42075 --- app/Models/Client.php | 13 +++++++++++++ app/Models/Contract.php | 24 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 app/Models/Client.php create mode 100644 app/Models/Contract.php diff --git a/app/Models/Client.php b/app/Models/Client.php new file mode 100644 index 0000000..951f26d --- /dev/null +++ b/app/Models/Client.php @@ -0,0 +1,13 @@ +hasMany(static::class)->onlyTrashed(); + } + + public function relationOther(): HasMany + { + return $this->hasMany(Client::class)->onlyTrashed(); + } +}