Flux integrates with Inertia through the Inertia-specific FluxProvider. See the installation guide to set it up.
<Button href="/dashboard">Dashboard</Button><Sidebar.Item href="/settings" prefetch>Settings</Sidebar.Item>
import { dashboard, logout } from '@/routes';<Sidebar.Item href={dashboard()}>Dashboard</Sidebar.Item><Dropdown.Item href={logout()}>Log out</Dropdown.Item>
<Form {...store.form()}> <Input label="Email" type="email" name="email" /> <Input label="Password" type="password" name="password" /></Form>
<Form {...update.form()}> <Input label="Name" name="name" /> <Button type="submit" variant="primary">Save</Button></Form>
<Navbar> <Navbar.Item href="/dashboard">Dashboard</Navbar.Item> <Navbar.Item href="/settings">Settings</Navbar.Item></Navbar>
Inertia::flash('flux:toast', [ 'text' => 'Profile updated.', 'variant' => 'success',]);return back();