|Like newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Like newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Like onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|Like query() * @method static \Illuminate\Database\Eloquent\Builder|Like whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Like whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Like whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Like whereIsComment($value) * @method static \Illuminate\Database\Eloquent\Builder|Like whereProfileId($value) * @method static \Illuminate\Database\Eloquent\Builder|Like whereStatusId($value) * @method static \Illuminate\Database\Eloquent\Builder|Like whereStatusProfileId($value) * @method static \Illuminate\Database\Eloquent\Builder|Like whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Like withTrashed(bool $withTrashed = true) * @method static \Illuminate\Database\Eloquent\Builder|Like withoutTrashed() * * @mixin \Eloquent */ class Like extends Model { use SoftDeletes; const MAX_PER_DAY = 1500; protected $guarded = []; protected function casts(): array { return [ 'deleted_at' => 'datetime', ]; } public function actor(): BelongsTo { return $this->belongsTo(Profile::class, 'profile_id', 'id'); } public function status(): BelongsTo { return $this->belongsTo(Status::class); } }