File manager - Edit - /var/www/html/spdc/api/app/Models/OccurrencyForm.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Concerns\HasUuids; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Factories\HasFactory; class OccurrencyForm extends Model { use HasFactory; use HasUuids; protected $fillable = [ 'name', 'description', 'system_item', 'occurrency_id', 'section' ]; protected $casts = [ 'system_item' => 'boolean', ]; protected $attributes = [ 'system_item' => false, ]; /** * Get the occurrency that owns the OccurrencyForm * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function occurrency(): BelongsTo { return $this->belongsTo(Occurrency::class); } /** * Get all of the fields for the OccurrencyForm * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function fields(): HasMany { return $this->hasMany(OccurrencyField::class); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings