33 lines
511 B
PHP
33 lines
511 B
PHP
<?php
|
|
|
|
namespace App\Models\Ambulatorio;
|
|
|
|
use App\Models\Model;
|
|
|
|
class Dente extends Model
|
|
{
|
|
protected $table = 'ambulatorio_dente';
|
|
|
|
protected $casts = [
|
|
'is_deciduo' => 'boolean',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'arcada_id',
|
|
'numero',
|
|
'is_deciduo',
|
|
'ordem',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'updated_at',
|
|
];
|
|
|
|
public function arcada()
|
|
{
|
|
return $this->belongsTo(ArcadaDentaria::class);
|
|
}
|
|
}
|