Added a method to get the scope of an accountClass.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user