Why are you passing a string literal as the model to Form::model
that should be an instance of a model.
I tried with
$page = Page::findOrFail($id)->first();
return view('pages.index', compact('page'));
or
$page = Page::findOrFail($id);
return view('pages.index', compact('page'));
with same result:
{!! $page->title !!}
prints out the title in the page (so I think the model is correctly passed to the view), but the form's fields are empty.. :(
Please, can you be a little more clear?
Thank you in advance.
Sorry, now I see the quotes around $page on Form::model()... Thank you so much... It was very late last night, I should have gone in bed...
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community