I've returned a value from my controller.When I use the value in my view blade,it shows Syntax error Here is my code,
Controller
public function edit($id)
{
$a = DB::select('select * from users where id = "$pid"', array(1));
return view('sample', ['users' => $a]);
}
And in View blade,
{!! Form::Id('Id', $value = , ['class' => 'form-control1', 'placeholder' => 'Id']) !!}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire