July 30, 2026 — The unofficial Laracon US Day 3. Get your ticket to The Vibes

Haptics


Overview#

The Haptics API provides access to the device's vibration and haptic feedback system for tactile user interactions.

Import
Copied!
use Native\Mobile\Facades\Haptics;
Copied!
import { device } from '#nativephp';

Methods#

vibrate()#

Triggers device vibration for tactile feedback.

Returns: void

Vibrate
Copied!
Haptics::vibrate();
Copied!
await device.vibrate();

Use haptics for: Button presses, form validation, important notifications, game events.

Avoid haptics for: Frequent events, background processes, minor updates.