for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bantenprov\OrangTua\Models\Bantenprov\OrangTua;
use Illuminate\Database\Eloquent\Model;
/**
* The OrangTua class.
*
* @package Bantenprov\OrangTua
* @author bantenprov <[email protected]>
*/
class OrangTua extends Model
{
protected $table = 'orangtuas';
protected $fillable = [
'siswa_id',
'alamat_ortu',
'nama_ayah',
'nama_ibu',
'kerja_ayah',
'pendidikan_ayah',
'kerja_ibu',
'pendidikan_ibu',
'no_telp',
'user_id'
];
public function user()
return $this->belongsTo('App\User','user_id');
}
public function siswa()
return $this->belongsTo('Bantenprov\Siswa\Models\Bantenprov\Siswa\Siswa','siswa_id');