mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Expose record after create on relation manager
This commit is contained in:
@@ -41,7 +41,7 @@ class CreateRecord extends Component
|
||||
|
||||
$this->callHook('beforeCreate');
|
||||
|
||||
$this->owner->{$this->getRelationshipName()}()->create($this->record);
|
||||
$this->record = $this->owner->{$this->getRelationshipName()}()->create($this->record);
|
||||
|
||||
$this->callHook('afterCreate');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user