mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 03:11:06 +03:30
20 lines
368 B
PHP
20 lines
368 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Package extends Model
|
|
{
|
|
public $fillable = ['name', 'unique_id', 'user_id', 'result', 'description'];
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('App\User');
|
|
}
|
|
public function items()
|
|
{
|
|
return $this->belongsToMany('App\Item', 'item_package');
|
|
}
|
|
|
|
}
|