HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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);
    }
}