fix a problem

This commit is contained in:
mahdi purHosseini
2023-12-14 11:00:03 +03:30
parent 19a3488a1d
commit a8587241c1
+5
View File
@@ -13,6 +13,11 @@ class Package extends Model
return $this->belongsTo( 'App\User' );
}
public function creator()
{
return $this->belongsTo( 'App\User' , "creator_id" );
}
public function items()
{
return $this->hasMany( 'App\Item' );