2016-06-13 2 views

답변

4

이 시도

$row = Client::find(DB::table('client')->max('code')); 

을하지만, null를 돌려 : Client::where('code', 'LIKE', $year . '%')->max('code');

SELECT code FROM client WHERE code 
//    =(SELECT max(code) FROM client where code LIKE '" . $year . "%')"; 

을 내가 이것을 시도

+0

완벽하게 고마워, 고마워. –

+0

@FabioSantos 제발, 대답 해주세요. ike a Best, 작동하는 경우. – GONG