tengo este error,
Invalid argument supplied for foreach() (View: C:\xampp\htdocs\bancohdvdao\resources\views\aspirante\create.blade.php)
$aspirante = new Aspirante;
$correo = DB::table('users')->where('id', 'Auth::user()->id')->value('email');
return view('aspirante.create', ["aspirante" => $aspirante])->with('correo',
$correo);
y el HTML
<div class="col-md-3">
<div class="form-group row">
<label class="col-sm-12 col-form-label">Correo:</label>
<div class="col-sm-12">
@foreach($correo as $correo)
<input type="text" id="correoasp" class="form-control" name="correo_asp" value="{{$correo->email}}" placeholder="" disabled="disabled">
@endforeach
</div>
</div>
</div>
correo
pero en tuforeach
usascorreos
, talvez hay esta tu error