Files
ficheagent/app/Models/Attachment.php

25 lines
433 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Traits\BelongsToStructure;
class Attachment extends Model
{
use BelongsToStructure;
protected $fillable = [
'service_task_id',
'filename',
'original_name',
'path',
'mime_type',
'size'
];
public function serviceTask()
{
return $this->belongsTo(ServiceTask::class);
}
}