diff --git a/php-templates/inertia.php b/php-templates/inertia.php index d1a51fc8..deb0d318 100644 --- a/php-templates/inertia.php +++ b/php-templates/inertia.php @@ -1,8 +1,8 @@ collect(config('inertia.testing.page_paths', []))->flatMap(function($path) { + 'page_extensions' => config('inertia.page_extensions', config('inertia.testing.page_extensions', [])), + 'page_paths' => collect(config('inertia.page_paths', config('inertia.testing.page_paths', [])))->flatMap(function($path) { $relativePath = LaravelVsCode::relativePath($path); return [$relativePath, mb_strtolower($relativePath)]; diff --git a/src/templates/inertia.ts b/src/templates/inertia.ts index 072b8d13..460f91d0 100644 --- a/src/templates/inertia.ts +++ b/src/templates/inertia.ts @@ -1,8 +1,8 @@ // This file was generated from php-templates/inertia.php, do not edit directly export default ` echo json_encode([ - ...config('inertia.testing', []), - 'page_paths' => collect(config('inertia.testing.page_paths', []))->flatMap(function($path) { + 'page_extensions' => config('inertia.page_extensions', config('inertia.testing.page_extensions', [])), + 'page_paths' => collect(config('inertia.page_paths', config('inertia.testing.page_paths', [])))->flatMap(function($path) { $relativePath = LaravelVsCode::relativePath($path); return [$relativePath, mb_strtolower($relativePath)];