| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Database\Eloquent\Model;
- class EmailTemplateAttachment extends Model
- {
- use HasFactory;
-
- protected $fillable = [
- 'template_id',
- 'name',
- 'path',
- 'size',
- ];
- protected $casts = [
- 'created_at' => 'datetime',
- 'updated_at' => 'datetime',
- ];
- public function template()
- {
- return $this->belongsTo(EmailTemplate::class, 'template_id');
- }
- }
|