File manager - Edit - /var/www/html/spdc/api/app/Models/ScheduleAgent.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Concerns\HasUuids; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Factories\HasFactory; class ScheduleAgent extends Model { use HasFactory; use HasUuids; protected $fillable = [ 'user_id', 'external_agent_id', 'schedule_id', 'type' ]; /** * Get the schedule that owns the ScheduleAgent * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function schedule(): BelongsTo { return $this->belongsTo(Schedule::class); } /** * Get the user that owns the ScheduleAgent * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(User::class); } /** * Get the externalAgent that owns the ScheduleAgent * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function externalAgent(): BelongsTo { return $this->belongsTo(ExternalAgent::class); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings