File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ public function __construct(array $attributes = [])
5959 parent ::__construct ($ attributes );
6060 }
6161
62+ /**
63+ * @return MorphTo<Model, $this>
64+ */
6265 public function subject (): MorphTo
6366 {
6467 if (config ('activitylog.subject_returns_soft_deleted_models ' )) {
@@ -68,6 +71,9 @@ public function subject(): MorphTo
6871 return $ this ->morphTo ();
6972 }
7073
74+ /**
75+ * @return MorphTo<Model, $this>
76+ */
7177 public function causer (): MorphTo
7278 {
7379 return $ this ->morphTo ();
Original file line number Diff line number Diff line change 44
55use Illuminate \Database \Eloquent \Relations \MorphMany ;
66use Spatie \Activitylog \ActivitylogServiceProvider ;
7+ use Spatie \Activitylog \Models \Activity ;
8+
79
810trait CausesActivity
911{
12+ /** @return MorphMany<Activity, $this> */
1013 public function actions (): MorphMany
1114 {
1215 return $ this ->morphMany (
You can’t perform that action at this time.
0 commit comments