Modified API and created its tests

This commit is contained in:
Gregorio Chiko Putra
2019-05-09 15:44:27 +07:00
parent b0553839d0
commit a82b6f0af5
7 changed files with 154 additions and 5 deletions

View File

@@ -9,8 +9,16 @@ class AccessLog extends Model
{
use SoftDeletes;
protected $fillable = [
'siswa_id',
];
protected $with = [ 'siswa' ];
protected $date = [
'created_at', 'updated_at', 'deleted_at',
];
public function siswa()
{
return $this->belongsTo('App\Siswa');