Created temporary API

This commit is contained in:
Gregorio Chiko Putra
2019-05-09 14:23:17 +07:00
parent b1ab965f11
commit b0553839d0
5 changed files with 144 additions and 2 deletions

18
app/AccessLog.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class AccessLog extends Model
{
use SoftDeletes;
protected $with = [ 'siswa' ];
public function siswa()
{
return $this->belongsTo('App\Siswa');
}
}

11
app/Siswa.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Siswa extends Model
{
use SoftDeletes;
}