使用查询结果集附加数据

时间:2017-10-27 12:13:02

标签: laravel laravel-5 laravel-5.3

我想用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 )

0 个答案:

没有答案