Skip to content

Instantly share code, notes, and snippets.

@caiovncius
Created March 26, 2025 11:58
Show Gist options
  • Save caiovncius/bab1f88c3017012dfb708fce5903a467 to your computer and use it in GitHub Desktop.
Save caiovncius/bab1f88c3017012dfb708fce5903a467 to your computer and use it in GitHub Desktop.
Inertia main layout
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title inertia>{{ config('app.name', 'Laravel') }}</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
<!-- Scripts -->
@routes
@viteReactRefresh
@vite(['resources/js/app.tsx', "resources/js/Pages/{$page['component']}.tsx"])
@inertiaHead
</head>
<body class="font-sans antialiased">
@inertia
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment