first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Category extends Model
|
||||
{
|
||||
protected $table = 'store_categories';
|
||||
|
||||
protected $fillable = [
|
||||
'type',
|
||||
'name',
|
||||
'slug',
|
||||
'description',
|
||||
'sort_order',
|
||||
];
|
||||
|
||||
public function packages()
|
||||
{
|
||||
return $this->belongsToMany(Package::class, 'store_package_categories', 'category_id', 'package_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user