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.

25 lines
426 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Periode extends Model
{
use SoftDeletes;
protected $table = 'periode';
protected $fillable = [
'nama',
'tgl_mulai',
'tgl_selesai',
'is_active'
];
public function kelas(){
return $this->hasMany('App\Models\Kelas','periode_id','id');
}
}