File: D:/HostingSpaces/SBogers10/otto-das.komma.pro/app/Components/ComponentArea/ComponentArea.php
<?php
namespace App\Components\ComponentArea;
use App\Components\Component\Component;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* App\Components\ComponentArea\ComponentArea
*
* @property int $id
* @property string $code_name
* @property int $componentable_id
* @property string $componentable_type
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Components\Component\Component[] $components
* @method static \Illuminate\Database\Eloquent\Builder|\App\Components\ComponentArea\ComponentArea whereCodeName($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Components\ComponentArea\ComponentArea whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Components\ComponentArea\ComponentArea whereDynamicableId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Components\ComponentArea\ComponentArea whereDynamicableType($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Components\ComponentArea\ComponentArea whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Components\ComponentArea\ComponentArea whereUpdatedAt($value)
* @mixin \Eloquent
* @method static \Illuminate\Database\Eloquent\Builder|\App\Components\ComponentArea\ComponentArea newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Components\ComponentArea\ComponentArea newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Components\ComponentArea\ComponentArea query()
*/
class ComponentArea extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['code_name', 'componentable_id', 'componentable_type'];
/**
* @return HasMany
*/
public function components():HasMany
{
return $this->hasMany(Component::class);
}
}