Add new version in repository
This commit is contained in:
21
app/Models/Shop/Variation.php
Normal file
21
app/Models/Shop/Variation.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Shop;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Variation extends Model
|
||||
{
|
||||
protected $guarded = ['id'];
|
||||
protected $table = 'shop_variations';
|
||||
|
||||
public function package()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Shop\Package');
|
||||
}
|
||||
|
||||
public function unity()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Shop\Unity');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user