File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
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 @@ -112,15 +112,15 @@ public function test_the_version_can_be_a_closure(): void
112
112
$ this ->assertSame ('' , Inertia::getVersion ());
113
113
114
114
Inertia::version (function () {
115
- return md5 ( 'Inertia ' );
115
+ return hash ( ' xxh128 ' , 'Inertia ' );
116
116
});
117
117
118
118
return Inertia::render ('User/Edit ' );
119
119
});
120
120
121
121
$ response = $ this ->withoutExceptionHandling ()->get ('/ ' , [
122
122
'X-Inertia ' => 'true ' ,
123
- 'X-Inertia-Version ' => 'b19a24ee5c287f42ee1d465dab77ab37 ' ,
123
+ 'X-Inertia-Version ' => 'f445bd0a2c393a5af14fc677f59980a9 ' ,
124
124
]);
125
125
126
126
$ response ->assertSuccessful ();
You can’t perform that action at this time.
0 commit comments