mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 23:01:07 +03:30
fix a problem
This commit is contained in:
@@ -13,6 +13,11 @@ class Package extends Model
|
|||||||
return $this->belongsTo( 'App\User' );
|
return $this->belongsTo( 'App\User' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function creator()
|
||||||
|
{
|
||||||
|
return $this->belongsTo( 'App\User' , "creator_id" );
|
||||||
|
}
|
||||||
|
|
||||||
public function items()
|
public function items()
|
||||||
{
|
{
|
||||||
return $this->hasMany( 'App\Item' );
|
return $this->hasMany( 'App\Item' );
|
||||||
|
|||||||
Reference in New Issue
Block a user