【发布时间】:2017-08-25 03:36:06
【问题描述】:
谁能帮我修复我的代码?我有这个概念,但不知道如何将它们写入控制器中的代码
$temp=DB::table('temporary')->get();
//dd($temp);
if($temp['tahun'] < 'current year'){
$temp['tahun'] = 'current year';
$temp['nomor'] = 'nomor+1';
$keluhan->no_laporan = $temp['nomor'];
} else {
$temp['nomor']++;
}
条件: 我的临时表有 2 个属性 tahun(value=2017 int) 和 nomor (value=1 int) 我想检查我的 tahun 是否
【问题讨论】:
-
代码中的变量
$keluhan是什么?
标签: php arrays laravel laravel-5.2