| Current Path : /var/www/html/dynaweb-starter/plugin/dynaweb-site/src/Models/ |
| Current File : /var/www/html/dynaweb-starter/plugin/dynaweb-site/src/Models/FrontendComponent.php |
<?php
namespace Dynaweb\DynawebSite\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Dynaweb\DynawebSite\Enums\{FrontendComponentType, FrontendComponentCategory};
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
class FrontendComponent extends Model
{
use HasFactory;
/**
* The Relationship.
*/
// public function pageComponent(): BelongsToMany
// {
// return $this->belongsToMany(FrontendPageComponent::class, 'frontend_page_components', 'component_fk', 'page_fk');
// }
protected $casts = [
'type' => FrontendComponentType::class,
'category' => FrontendComponentCategory::class
];
}