Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trait detection
Browse files Browse the repository at this point in the history
szepeviktor authored Jun 27, 2024
1 parent 5369778 commit 784209c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/Action.php
Original file line number Diff line number Diff line change
@@ -211,7 +211,7 @@ public function handleFormRequest(Request $request, Model $model): void

$this->handle($request, $models);

if (in_array(HasRootEvents::class, class_uses_recursive($model))) {
if (method_exists($model, 'recordRootEvent')) {
$models->each(static function (Model $model) use ($request): void {
$model->recordRootEvent(

Check failure on line 216 in src/Actions/Action.php

GitHub Actions / 3️⃣ Static Analysis

Call to an undefined method Illuminate\Database\Eloquent\Model::recordRootEvent().
Str::of(static::class)->classBasename()->headline()->value(),

0 comments on commit 784209c

Please sign in to comment.