- Install the package using Composer:
composer require parallax/inertia-statamic-adapter
- Create your root template in
resources/views/app.blade.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<link href="{{ mix('/css/app.css') }}" rel="stylesheet" />
<script src="{{ mix('/js/app.js') }}" defer></script>
</head>
<body>
@inertia
</body>
</html>
-
Follow the Inertia.js documentation for client-side installation
-
Create a
Pages
directory within/resources/js
The adapter will use studly-cased collection & blueprint handles to generate the component paths. For example a collection & blueprint with the respective handles of blog
& article
the adapter will attempt to locate the component in the following location:
/resources/js/Pages/Blog/Article
The MIT License (MIT)