|
| 1 | +<?php |
| 2 | + |
| 3 | +return [ |
| 4 | + |
| 5 | + /* |
| 6 | + |-------------------------------------------------------------------------- |
| 7 | + | Force top-level property interaction |
| 8 | + |-------------------------------------------------------------------------- |
| 9 | + | |
| 10 | + | This setting allows you to toggle the automatic property interaction |
| 11 | + | check for your page's top-level properties. While this feature is |
| 12 | + | useful in property scopes, it is generally not as useful on the |
| 13 | + | top-level of the page, as it forces you to interact with each |
| 14 | + | (shared) property on the page, or to use the `etc` method. |
| 15 | + | |
| 16 | + */ |
| 17 | + |
| 18 | + 'force_top_level_property_interaction' => false, |
| 19 | + |
| 20 | + /* |
| 21 | + |-------------------------------------------------------------------------- |
| 22 | + | Page |
| 23 | + |-------------------------------------------------------------------------- |
| 24 | + | |
| 25 | + | The values described here are used to locate Inertia components on the |
| 26 | + | filesystem. For instance, when using `assertInertia`, the assertion |
| 27 | + | attempts to locate the component as a file relative to any of the |
| 28 | + | paths AND with any of the extensions specified here. |
| 29 | + | |
| 30 | + */ |
| 31 | + |
| 32 | + 'page' => [ |
| 33 | + |
| 34 | + /** |
| 35 | + * Determines whether assertions should check that Inertia page components |
| 36 | + * actually exist on the filesystem instead of just checking responses. |
| 37 | + */ |
| 38 | + 'should_exist' => true, |
| 39 | + |
| 40 | + /* |
| 41 | + * A list of root paths to your Inertia page components. |
| 42 | + */ |
| 43 | + 'paths' => [ |
| 44 | + |
| 45 | + resource_path('js/Pages'), |
| 46 | + |
| 47 | + ], |
| 48 | + |
| 49 | + /* |
| 50 | + * A list of valid Inertia page component extensions. |
| 51 | + */ |
| 52 | + 'extensions' => [ |
| 53 | + |
| 54 | + 'vue', |
| 55 | + 'svelte', |
| 56 | + |
| 57 | + ], |
| 58 | + |
| 59 | + ], |
| 60 | + |
| 61 | +]; |
0 commit comments