my problem is i cannot search and cannot disply the values in my texboxes.
what i want is to search the id of each user and display its data to my textbox
How can I do this on this video This Video in Laravel?
as of now I have this
View
{!! Form::open(['action' => 'Admin\EmployeeFilemController@search', 'method' => 'POST', 'enctype' => 'multipart/form-data']) !!}
<input type="text" name="id" class="form-control" placeholder="Enter ID to Search"><br>
<input type="submit" class="btn btn-primary btn-md" name="search" value="Search Data">
{!! Form::close() !!}
Controller
public function search(Request $request){
$output = "";
$employees = DB::table('employeefms')->where('id')->get();
return redirect('/admin/employeemaintenance');
}
my View Inputs
<div class="form-group col-md-2">
</div>
<div class="row">
<div class="form-group col-md-4">
</div>
<div class="form-group col-md-4">
</div>
</div>
<div class="row">
<div class="form-group col-md-4">
</div>
<div class="form-group col-md-4">
</div>
</div>
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2RBPUVD
via IFTTT
Aucun commentaire:
Enregistrer un commentaire