Add new version in repository
This commit is contained in:
20
app/Models/Shop/Merchandise.php
Normal file
20
app/Models/Shop/Merchandise.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Shop;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
use Rinvex\Tags\Traits\Taggable;
|
||||
|
||||
class Merchandise extends Model
|
||||
{
|
||||
use Taggable;
|
||||
|
||||
protected $guarded = ['id'];
|
||||
protected $table = 'shop_merchandises';
|
||||
|
||||
public function Articles()
|
||||
{
|
||||
return $this->morphMany('App\Models\Shop\Article', 'product');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user