本文整理汇总了PHP中App\Http\Controllers\BaseController::getIndex方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseController::getIndex方法的具体用法?PHP BaseController::getIndex怎么用?PHP BaseController::getIndex使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类App\Http\Controllers\BaseController
的用法示例。
在下文中一共展示了BaseController::getIndex方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: semua
public function semua($print = false)
{
parent::getIndex();
view()->share('breadcrumb3', 'Lihat Semua');
$fields = $this->model->getFields();
$fields = array_except($fields, ['periode_id', 'penilai_id']);
view()->share('fields', $fields);
if ($print) {
return view('app.penilaian.print');
}
view()->share(['printUrl' => url('penilaian/print')]);
return view('app.penilaian.index');
}
示例2: getIndex
public function getIndex()
{
parent::getIndex();
if (!session()->has('input')) {
view()->share('action', 'postSearch');
view()->share('withoutSubmit', true);
view()->share(compact('dataUrl'));
return view('app.profileMatching.form');
}
$hasil = $this->perhitunganProfileMatching(session()->get('input')->toArray());
$dataUrl = action('ProfileMatchingController@anyData', request()->all());
view()->share(compact('dataUrl'));
session()->forget('input');
return view('app.profileMatching.index', $hasil);
}
示例3: getIndex
public function getIndex()
{
if ($this->pns == null) {
return back();
}
parent::getIndex();
$fields = $this->model->getFields();
$fields = array_except($fields, ['id', 'skp_id', 'satuan_kuantitas', 'satuan_kualitas', 'satuan_waktu', 'satuan_biaya', 'nilai']);
$fields = ['nomor' => 'Nomor'] + $fields + ['penilaian_kuantitas' => 'Penilaian Kuantitas', 'penilaian_kualitas' => 'Penilaian Kualitas', 'penilaian_waktu' => 'Penilaian Waktu', 'penilaian_biaya' => 'Penilaian Biaya ', 'nilai' => 'Nilai', 'keterangan' => 'Keterangan'];
view()->share('fields', $fields);
view()->share('unsortables', array_keys($fields));
view()->share('withoutSearch', true);
$pns = $this->pns;
$penilai = $pns->atasan;
$dataUrl = $this->dataUrl ? $this->dataUrl : action('SKPController@anyData', ['id' => $this->skp ? $this->skp->id : 0]);
return view('app.skp.index', compact('pns', 'penilai', 'dataUrl'));
}