mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 01:58:00 +08:00
Merge pull request #15842 from lukeholder/3.x-lukeholder
Fixed: PHP syntax error in CreateAction
This commit is contained in:
@@ -67,7 +67,9 @@ class CreateAction extends Action
|
||||
|
||||
if (
|
||||
(! $relationship) ||
|
||||
$relationship instanceof (class_exists(HasOneOrManyThrough::class) ? HasOneOrManyThrough::class : HasManyThrough::class)
|
||||
(class_exists(HasOneOrManyThrough::class)
|
||||
? ($relationship instanceof HasOneOrManyThrough)
|
||||
: ($relationship instanceof HasManyThrough))
|
||||
) {
|
||||
$record->save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user