I am passing one row to the blade. Also doing this for lots of page. But in one page, i need to edit some datas in row, like this. This is eloquent:
$meta = SeoOptimization::find($id)->first();
it has title
, description
and keywords
what i want to do is, change title and description before passing to the view.
I do like that:
$meta['title'] = $category->translate()->title;
But now worked. Also tried this:
$meta->title = $category->translate()->title;
That didn't worked too.
dd($category->translate()->title);
is successfully return what i want. How can i pass this, with $meta->title? Any suggestion?
Still can't pass to view, they are chaning but changed in controller. Can't pass.