for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bantenprov\Prestasi\Models\Bantenprov\Prestasi;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Prestasi extends Model
{
use SoftDeletes;
public $timestamps = true;
protected $table = 'prestasis';
protected $dates = [
'deleted_at'
];
protected $fillable = [
'user_id',
'master_prestasi_id',
'nomor_un',
'nama_lomba'
public function master_prestasi()
return $this->belongsTo('Bantenprov\Prestasi\Models\Bantenprov\Prestasi\MasterPrestasi','master_prestasi_id');
}
public function user()
return $this->belongsTo('App\User','user_id');