Before issuing the "Content" model, I want to search and replace all attributes for placeholders.
I use "tylercd100/laravel-placeholders" to search the placeholders and that works too!
public function processVariables()
{
Placeholders::setThorough(false);
$content = \Route::current()->parameter('id');
$arrContent = Content::findOrFail($content->id);
$arrPlaceholders = PlaceholdersTraits::setPlaceholders($arrContent);
$variables = Placeholders::parse($arrContent, $arrPlaceholders);
return $variables;
}
Unfortunately it does not work for the output and I can not get any further.
here the error message in the ausag:
Trying to get property of non-object
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire