File tree Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- $ config = config ('inertia.testing ' , []);
4
-
5
- $ pagePaths = collect ($ config ['page_paths ' ] ?? [])->map (function ($ path ) {
6
- return LaravelVsCode::relativePath ($ path );
7
- });
8
-
9
- $ config ['page_paths ' ] = $ pagePaths ->toArray ();
10
-
11
- echo json_encode ($ config );
3
+ echo json_encode ([
4
+ ...config ('inertia.testing ' , []),
5
+ 'page_paths ' => collect (config ('inertia.testing.page_paths ' , []))->map (fn ($ path ) => LaravelVsCode::relativePath ($ path ))->toArray (),
6
+ ]);
Original file line number Diff line number Diff line change 1
1
// This file was generated from php-templates/inertia.php, do not edit directly
2
2
export default `
3
- $config = config('inertia.testing', []);
4
-
5
- $pagePaths = collect($config['page_paths'] ?? [])->map(function($path) {
6
- return LaravelVsCode::relativePath($path);
7
- });
8
-
9
- $config['page_paths'] = $pagePaths->toArray();
10
-
11
- echo json_encode($config);
3
+ echo json_encode([
4
+ ...config('inertia.testing', []),
5
+ 'page_paths' => collect(config('inertia.testing.page_paths', []))->map(fn($path) => LaravelVsCode::relativePath($path))->toArray(),
6
+ ]);
12
7
` ;
You can’t perform that action at this time.
0 commit comments