From a8587241c110c523cded81597419fc02f6f4cb2a Mon Sep 17 00:00:00 2001 From: mahdi purHosseini Date: Thu, 14 Dec 2023 11:00:03 +0330 Subject: [PATCH] fix a problem --- app/Package.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Package.php b/app/Package.php index 5b6e5d9d..7b4fd191 100644 --- a/app/Package.php +++ b/app/Package.php @@ -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' );