This commit is contained in:
25
api/app/Models/Ambulatorio/ArcadaDentaria.php
Normal file
25
api/app/Models/Ambulatorio/ArcadaDentaria.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Ambulatorio;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class ArcadaDentaria extends Model
|
||||
{
|
||||
protected $table = 'ambulatorio_arcada_dentaria';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'nome',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function dentes()
|
||||
{
|
||||
return $this->hasMany(Dente::class, 'arcada_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user