You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
766 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ProcesoAdmision extends Model
{
protected $table = 'procesos_admision';
protected $fillable = [
'nombre',
'fecha_inicio',
'fecha_fin',
'estado'
];
protected $casts = [
'fecha_inicio' => 'datetime',
'fecha_fin' => 'datetime',
'estado' => 'boolean'
];
/*
|--------------------------------------------------------------------------
| RELACIONES
|--------------------------------------------------------------------------
*/
// Un proceso tiene muchos resultados
public function resultados()
{
return $this->hasMany(ResultadoAdmision::class, 'idproceso');
}
}