dimanche 5 juillet 2020

Property [name] does not exist on this collection instance:(View: C:\Laravel5.8\nblog\resources\views\content\emailsForReview.blade.php)

this is the controller

public function emailsForReview()
{
    $email= Email::all();
    return view('content.emailsForReview',compact('email'));
}

this is the blade

@foreach($email as $emails)
  <div class="col-md-6">
        <div class="md-form mb-0">
          <label for="name" class="">name</label>
          <input type="text" value="" id="name" name="name" class="form-control">
         </div>
  </div>
@endforeach    

this is the route

Route::get('/emailsForReview','PagesController@emailsForReview');


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire