18 lines
405 B
PHP
18 lines
405 B
PHP
<?php
|
|
|
|
namespace Webkul\Attribute\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Webkul\Attribute\Models\Attribute;
|
|
use Webkul\Attribute\Models\AttributeGroup;
|
|
|
|
class AttributeFamily extends Model
|
|
{
|
|
/**
|
|
* Get all of the attributes for the attribute groups.
|
|
*/
|
|
public function attributes()
|
|
{
|
|
return $this->hasManyThrough(Attribute::class, AttributeGroup::class);
|
|
}
|
|
} |