我想用select查询输出附加数据
outerLayoutBase
结果集outerLayoutBase
我希望设置为$project_code=DB::table('project')->where('customer_code',$customer_name)->whereRaw("owner in (select a.user_name from users a left join users b on a.manager=b.firstname where a.user_name='$user_name' or a.manager = '$first_name' or b.manager ='$first_name')")->pluck('name','code')->all();
从上面的结果集中我想在laravel 5.3中添加值Array ( [IND_0068_02] => Test_Project_Dedicated1 )
。