whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
788 stars 228 forks source link

How to send arguments to custom layout #412

Open jawadsahil opened 1 year ago

jawadsahil commented 1 year ago

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);
tonnyorg commented 1 year ago

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

riptin commented 1 year ago

+1

$this->model inside layout instance returns null.