Modified API and created its tests
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user