mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 06:21:10 +03:30
add pack and update items & packegs & cycles
This commit is contained in:
+3
-3
@@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Package extends Model
|
||||
{
|
||||
public $fillable = ['name', 'unique_id', 'user_id', 'result', 'description'];
|
||||
public $fillable = ['name', 'unique_id', 'user_id', 'note', 'verified'];
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('App\User');
|
||||
@@ -15,9 +15,9 @@ class Package extends Model
|
||||
{
|
||||
return $this->belongsToMany('App\Item', 'item_package');
|
||||
}
|
||||
public function cycles()
|
||||
public function packes()
|
||||
{
|
||||
return $this->belongsToMany('App\Cycle', 'cycle_package');
|
||||
return $this->belongsToMany('App\Pack', 'pack_package');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user