nova-flexible-content icon indicating copy to clipboard operation
nova-flexible-content copied to clipboard

How to send arguments to custom layout

Open jawadsahil opened this issue 3 years ago • 2 comments

Is there any way I can pass some arguments to my custom layout class?

like:

Flexible::make('Content')
    ->addLayout(\App\Nova\Flexible\Layouts\SimpleWysiwygLayout::class, $arguments);

jawadsahil avatar Nov 06 '22 13:11 jawadsahil

I'm in the need of something similar, is it possible @whitecube?

tonnyorg avatar Jan 15 '23 23:01 tonnyorg

+1

$this->model inside layout instance returns null.

riptin avatar May 23 '23 13:05 riptin