瀏覽代碼

latest logic

master
Siti Rahayu 4 年之前
父節點
當前提交
bf0b8ee0e7

+ 2
- 2
app/Http/Controllers/Api/CompoundResourceController.php 查看文件

} }
else{ else{


//check the lastest compound number stored in dbase filtered by jenis
//check the latest compound number stored in dbase filtered by jenis
$notice = Compound::where('jenis_n', $jenis)->withTrashed()->latest()->first(); $notice = Compound::where('jenis_n', $jenis)->withTrashed()->latest()->first();


//sanitize compound number to return only integer //sanitize compound number to return only integer
}else if($modul == '03') }else if($modul == '03')
{ {
//check if theres no 001, start fresh with 0001 //check if theres no 001, start fresh with 0001
if (empty(Compound::where('jenis', $jenis)->where('kpd', $tag.'0001')->first())) {
if (empty(Compound::where('jenis', $jenis)->where('kpd', $tag.'0001')->withTrashed()->first())) {


$num = '0001'; $num = '0001';



+ 0
- 5
app/Http/Controllers/Api/LoginController.php 查看文件

public function testing(Request $request) public function testing(Request $request)
{ {


$date = '2020-10-06 16:19:48';

dd(date('F Y', strtotime($date)));


} }


} }

Loading…
取消
儲存