|SupportRequest newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest newQuery() * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest query() * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereCategory($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereEmail($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereHandledBy($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereMessage($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest wherePhone($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereResolvedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereStatus($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereTitle($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereUserId($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest whereUserType($value) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest withTrashed(bool $withTrashed = true) * @method static \Illuminate\Database\Eloquent\Builder|SupportRequest withoutTrashed() * @mixin \Eloquent */ class SupportRequest extends Model { use HasFactory, SoftDeletes; protected $table = 'support_requests'; protected $guarded = [ 'id', ]; protected $fillable = [ 'user_id', 'user_type', 'name', 'email', 'phone', 'category', 'title', 'message', 'status', 'handled_by', 'resolved_at', ]; protected $casts = [ 'status' => SupportRequestStatusEnum::class, 'resolved_at' => 'datetime', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'deleted_at' => 'datetime', ]; public function user(): BelongsTo { return $this->belongsTo(User::class, 'user_id'); } public function handler(): BelongsTo { return $this->belongsTo(User::class, 'handled_by'); } }