Skip to content

Commit 54a8e2d

Browse files
authored
fix laravel 7+ issues (#48)
credit to @safiullahsarhandi for comming up with fix , im simply implimenting it into base
1 parent f6462a7 commit 54a8e2d

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

.DS_Store

8 KB
Binary file not shown.

resources/views/api-tester.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
<div id="api-tester">
1717
<vm-api-tester-main></vm-api-tester-main>
1818
</div>
19-
<script src="{{ route('api-tester.file', ['_file' => 'api-tester.js']) }}"></script>
19+
<script src="{{ route('api-tester.file', ['_file' => 'api-tester.js']) }}"></script>
2020
</body>
2121
</html>

src/Entities/RouteInfo.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
use Illuminate\Contracts\Support\Arrayable;
66
use Illuminate\Foundation\Http\FormRequest;
7-
use Illuminate\Support\Str;
87
use JsonSerializable;
8+
use Illuminate\Support\Str;
99

1010
/**
1111
* Frontend ready route

src/Storages/JsonStorage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(Filesystem $files, RequestCollection $collection, $p
5454
$this->collection = $collection;
5555
$path = explode('/', $path);
5656
$this->filename = array_pop($path);
57-
$this->path = implode($path, '/');
57+
$this->path = implode('/'.$path);
5858
}
5959

6060
/**

0 commit comments

Comments
 (0)