0
I'v은 schedul 테이블에서 마지막 ID를 선택하기 위해 아래와 같은 기능을 사용하지만laravel5.0 eloqeunt relationship에서 max id를 사용하는 방법?
'loan'=>function($s) {
$s->with(['schedule'=>function($schedule){
$schedule->select(DB::raw('loan_id, schedule_date, principal as schedule_principal','max(id) as id'));
}]);
}]);