我正在做一個多輸入搜索查詢,我需要幫助,因爲我不知道如何完全做到這一點,我已閱讀所有的文件,我不明白it.Now我卡在控制器.....Laravel多輸入搜索4.2
而且我會很感激的如何調用,我想在show.blade的信息!感謝您的任何幫助 !
指數刀片
<div class="panel-body">
<div class="form-group">
<div><h4></h4></div>
<div class="form-group col-md-4">
{{ Form::open(array('action' => array('[email protected]'), 'class'=>'form width88', 'role'=>'search', 'method' => 'GET')) }}
<div id="prefetch">
{{ Form::text('name', null, array('class' => 'typeahead form-group form-control', 'placeholder' => 'name...')) }}
{{ Form::text('lastname', null, array('class' => 'form-group form-control', 'placeholder' => 'lastname...')) }}
{{-- {{ Form::text('id', null, array('class' => 'form-group form-control', 'placeholder' => 'id...')) }}
{{ Form::text('user-seminars', null, array('class' => 'form-group form-control', 'placeholder' => 'Class tha is enrolled...')) }}
{{ Form::text('user-class', null, array('class' => 'form-group form-control', 'placeholder' => 'Class that belongs...')) }}
{{ Form::text('user-annex', null, array('class' => 'form-group form-control', 'placeholder' => 'Department that belongs...')) }}
{{ Form::text('type', null, array('class' => 'form-group form-control', 'placeholder' => 'User type...')) }}
{{ Form::text('date_created', null, array('class' => 'form-group form-control', 'placeholder' => 'date created account...')) }}
{{ Form::text('date_enrolled', null, array('class' => 'form-group form-control', 'placeholder' => 'date enrolled in class...')) }}
路線
Route::get('users/index', '[email protected]');
Route::get('users/search', '[email protected]');
Route::get('users/show', '[email protected]');
UserContoller
public function index(){
return View::make('user.index');
}
public function search(){
return View::make('user.show');
}
public function show(){
return View::make('user.show');
}
users表
ID,姓名,姓氏,等等等等你爲什麼要使用返回查看
我會嘗試這一點,並儘快給您 –
thaxü人是我不需要兩個時間返回視圖::使得它是從實驗^ _ ^,我忘了! –