Defining Widgets

I see that in the docs, I can that when trying to view a widget in create or edit, you can pass the record like
public ?Model $record = null
public ?Model $record = null
So in my widget class, how do I pass the model as I've tried
public ?Model $record = new Profile();

// and
public ?Model $record = Profile::class
public ?Model $record = new Profile();

// and
public ?Model $record = Profile::class
Bit confused on this step
1 Reply
Jamie Cee
Jamie CeeOP17mo ago
Oh, do I just keep it set as null, that looks like it's actually passed through, my bad
Want results from more Discord servers?
Add your server