26 lines
437 B
PHP
26 lines
437 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class FotoBug extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'fotosbugs';
|
|
|
|
protected $fillable = [
|
|
'extension',
|
|
'tamanio_bytes',
|
|
'nombre',
|
|
'mime_type',
|
|
];
|
|
|
|
public function bug()
|
|
{
|
|
return $this->hasOne(Bug::class, 'fotobug_id', 'id');
|
|
}
|
|
}
|