本文整理汇总了PHP中Historico::select方法的典型用法代码示例。如果您正苦于以下问题:PHP Historico::select方法的具体用法?PHP Historico::select怎么用?PHP Historico::select使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Historico
的用法示例。
在下文中一共展示了Historico::select方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: RelatoriodeQuantidadeAlunopoderamcursartcc
public function RelatoriodeQuantidadeAlunopoderamcursartcc()
{
$countAprovDis = Historico::select(DB::raw('COUNT(status_his) AS cursadas'))->where('id_alu_his', $id)->where('status_his', 1)->get();
}
示例2: edit
/**
* Show the form for editing the specified resource.
*
* @param int id
* @return Response
*/
public function edit($id)
{
$alunoConteudo = Aluno::lists('nome_alu', 'id');
$DisciplinaConteudo = Disciplina::select('componente_curricular_ccr.id AS id_ccr', 'componente_curricular_ccr.nome_ccr AS nome_ccr')->leftJoin('componente_curricular_ccr', 'componente_curricular_ccr.id', '=', 'disciplina_dis.id_ccr_dis')->lists('nome_ccr', 'id_ccr');
$historico = Historico::select('componente_curricular_ccr.id AS id_ccr', 'componente_curricular_ccr.nome_ccr AS nome_ccr', 'historico_his.id AS id_his', 'historico_his.status_his AS status_his', 'historico_his.id_alu_his AS id_alu_his', 'aluno_alu.nome_alu AS nome_alu')->leftJoin('aluno_alu', 'aluno_alu.id', '=', 'historico_his.id_alu_his')->leftJoin('componente_curricular_ccr', 'componente_curricular_ccr.id', '=', 'historico_his.id_dis_his')->paginate(10);
$historicoEdit = $this->historico->find($id);
if (is_null($historicoEdit)) {
return Redirect::route('admin.historico', $this->idAlu);
}
return View::make('historico.edit', array('historicoEdit' => $historicoEdit, 'alunoConteudo' => $alunoConteudo, 'DisciplinaConteudo' => $DisciplinaConteudo, 'historico' => $historico));
}