Open szepeviktor opened 1 year ago
Workaround:
return $this->view('components.cookie.option', [
'acceptText' => __(':name engedélyezése', ['name' => $this->label]),
'declineText' => __(':name elutasítása', ['name' => $this->label]),
'name' => $this->name,
]);
The issue here is that bladestan does not import them in to the context automatically, but if you do so explicitly it will be able to see them correctly.
I added a failing test case for this with https://github.com/TomasVotruba/bladestan/pull/82.
AFAIK public Model properties are available in blade templates. Bladestan reports
{{ $name }}
asPlease advise.