Closed innocenzi closed 5 years ago
See https://github.com/rompetomp/inertia-bundle/issues/7. Works the same way as shared properties.
Single: $inertia->render('component', [ 'prop' => 'value' ], [ 'viewData' => 'value']); Multiple (in Controller Event): $this->inertia->setViewData('viewData', 'value');
$inertia->render('component', [ 'prop' => 'value' ], [ 'viewData' => 'value']);
$this->inertia->setViewData('viewData', 'value');
I think my php-cs-fixer and StyleCI are not quite in sync. Could you possibly fix it for me?
It should fix itself once I merge (I think)
See https://github.com/rompetomp/inertia-bundle/issues/7. Works the same way as shared properties.
Single:
$inertia->render('component', [ 'prop' => 'value' ], [ 'viewData' => 'value']);
Multiple (in Controller Event):$this->inertia->setViewData('viewData', 'value');