Added a method to get the scope of an accountClass.

This commit is contained in:
Lukas Halbritter
2018-10-04 19:55:52 +02:00
parent f8eb022403
commit fe9cb367e5
+10
View File
@@ -15,4 +15,14 @@ class AccountClass extends Model
{ {
return $this->belongsTo('App\IOType'); 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');
}
} }