File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ class Middleware
29
29
public function version (Request $ request )
30
30
{
31
31
if (config ('app.asset_url ' )) {
32
- return md5 ( config ('app.asset_url ' ));
32
+ return hash ( ' xxh128 ' , config ('app.asset_url ' ));
33
33
}
34
34
35
35
if (file_exists ($ manifest = public_path ('mix-manifest.json ' ))) {
36
- return md5_file ( $ manifest );
36
+ return hash_file ( ' xxh128 ' , $ manifest );
37
37
}
38
38
39
39
if (file_exists ($ manifest = public_path ('build/manifest.json ' ))) {
40
- return md5_file ( $ manifest );
40
+ return hash_file ( ' xxh128 ' , $ manifest );
41
41
}
42
42
43
43
return null ;
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public function test_the_version_can_be_a_closure(): void
109
109
$ this ->assertSame ('' , Inertia::getVersion ());
110
110
111
111
Inertia::version (function () {
112
- return md5 ( 'Inertia ' );
112
+ return hash ( ' xxh128 ' , 'Inertia ' );
113
113
});
114
114
115
115
return Inertia::render ('User/Edit ' );
You can’t perform that action at this time.
0 commit comments