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.

27 lines
486 B
PHTML

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Role extends Model
{
use SoftDeletes;
protected $table = 'role';
protected $fillable = [
'tagihan_id',
'siswa_id'
];
public function siswa(){
return $this->hasOne('App\Models\Siswa','id','siswa_id');
}
public function tagihan(){
return $this->hasOne('App\Models\Tagihan','id','tagihan_id');
}
}