|
6 | 6 | use App\Events\ActivityLogged; |
7 | 7 | use App\Traits\HasValidation; |
8 | 8 | use BackedEnum; |
9 | | -use Carbon\Carbon; |
10 | 9 | use Filament\Facades\Filament; |
11 | 10 | use Filament\Support\Contracts\HasIcon; |
12 | 11 | use Filament\Support\Contracts\HasLabel; |
|
17 | 16 | use Illuminate\Database\Eloquent\Relations\HasOne; |
18 | 17 | use Illuminate\Database\Eloquent\Relations\MorphTo; |
19 | 18 | use Illuminate\Support\Arr; |
| 19 | +use Illuminate\Support\Carbon; |
20 | 20 | use Illuminate\Support\Collection; |
21 | 21 | use Illuminate\Support\Facades\Event; |
22 | 22 | use Illuminate\Support\Str; |
|
31 | 31 | * @property string|null $description |
32 | 32 | * @property string|null $actor_type |
33 | 33 | * @property int|null $actor_id |
| 34 | + * @property Collection<array-key, mixed> $properties |
| 35 | + * @property Carbon $timestamp |
34 | 36 | * @property int|null $api_key_id |
35 | | - * @property Collection|null $properties |
36 | | - * @property \Carbon\Carbon $timestamp |
37 | | - * @property Model|\Eloquent $actor |
38 | | - * @property \Illuminate\Database\Eloquent\Collection|ActivityLogSubject[] $subjects |
39 | | - * @property int|null $subjects_count |
40 | | - * @property ApiKey|null $apiKey |
| 37 | + * @property-read Model|\Eloquent|null $actor |
| 38 | + * @property-read ApiKey|null $apiKey |
| 39 | + * @property-read \Illuminate\Database\Eloquent\Collection<int, ActivityLogSubject> $subjects |
| 40 | + * @property-read int|null $subjects_count |
41 | 41 | * |
42 | | - * @method static Builder|ActivityLog forActor(Model $actor) |
43 | | - * @method static Builder|ActivityLog forEvent(string $action) |
44 | | - * @method static Builder|ActivityLog newModelQuery() |
45 | | - * @method static Builder|ActivityLog newQuery() |
46 | | - * @method static Builder|ActivityLog query() |
47 | | - * @method static Builder|ActivityLog whereActorId($value) |
48 | | - * @method static Builder|ActivityLog whereActorType($value) |
49 | | - * @method static Builder|ActivityLog whereApiKeyId($value) |
50 | | - * @method static Builder|ActivityLog whereDescription($value) |
51 | | - * @method static Builder|ActivityLog whereEvent($value) |
52 | | - * @method static Builder|ActivityLog whereId($value) |
53 | | - * @method static Builder|ActivityLog whereIp($value) |
54 | | - * @method static Builder|ActivityLog whereProperties($value) |
55 | | - * @method static Builder|ActivityLog whereTimestamp($value) |
| 42 | + * @method static Builder<static>|ActivityLog forActor(\Illuminate\Database\Eloquent\Model $actor) |
| 43 | + * @method static Builder<static>|ActivityLog forEvent(string $action) |
| 44 | + * @method static Builder<static>|ActivityLog newModelQuery() |
| 45 | + * @method static Builder<static>|ActivityLog newQuery() |
| 46 | + * @method static Builder<static>|ActivityLog query() |
| 47 | + * @method static Builder<static>|ActivityLog whereActorId($value) |
| 48 | + * @method static Builder<static>|ActivityLog whereActorType($value) |
| 49 | + * @method static Builder<static>|ActivityLog whereApiKeyId($value) |
| 50 | + * @method static Builder<static>|ActivityLog whereDescription($value) |
| 51 | + * @method static Builder<static>|ActivityLog whereEvent($value) |
| 52 | + * @method static Builder<static>|ActivityLog whereId($value) |
| 53 | + * @method static Builder<static>|ActivityLog whereIp($value) |
| 54 | + * @method static Builder<static>|ActivityLog whereProperties($value) |
| 55 | + * @method static Builder<static>|ActivityLog whereTimestamp($value) |
56 | 56 | */ |
57 | 57 | class ActivityLog extends Model implements HasIcon, HasLabel |
58 | 58 | { |
|
0 commit comments