From fe9cb367e58c4751a72a520592f2e53a7ed9f530 Mon Sep 17 00:00:00 2001 From: Lukas Halbritter Date: Thu, 4 Oct 2018 19:55:52 +0200 Subject: [PATCH] Added a method to get the scope of an accountClass. --- app/AccountClass.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/AccountClass.php b/app/AccountClass.php index 18edca4..0b1e366 100644 --- a/app/AccountClass.php +++ b/app/AccountClass.php @@ -15,4 +15,14 @@ class AccountClass extends Model { return $this->belongsTo('App\IOType'); } + + /** + * Get the scope of the account class. + * + * @return Illuminate\Database\Eloquent\Relations\BelongsTo + */ + public function scope() + { + return $this->belongsTo('App\Scope'); + } }