@@ -44,7 +44,7 @@ public function it_looks_for_a_locale_in_a_custom_route_action()
44
44
Route::group ($ routeAction , function () {
45
45
Route::get ('some/route ' , function () {
46
46
return App::getLocale ();
47
- })->middleware (['web ' , SetLocale::class ]);
47
+ })->middleware (['web ' ]);
48
48
});
49
49
50
50
$ response = $ this ->get ('some/route ' );
@@ -62,7 +62,7 @@ public function it_looks_for_a_locale_in_the_url()
62
62
63
63
Route::get ('nl/some/route ' , function () {
64
64
return App::getLocale ();
65
- })->middleware (['web ' , SetLocale::class ]);
65
+ })->middleware (['web ' ]);
66
66
67
67
$ response = $ this ->get ('nl/some/route ' );
68
68
@@ -81,7 +81,7 @@ public function you_can_configure_which_segment_to_use_as_locale()
81
81
82
82
Route::get ('some/nl/route ' , function () {
83
83
return App::getLocale ();
84
- })->middleware (['web ' , SetLocale::class ]);
84
+ })->middleware (['web ' ]);
85
85
86
86
$ response = $ this ->get ('some/nl/route ' );
87
87
@@ -101,7 +101,7 @@ public function it_looks_for_custom_slugs()
101
101
102
102
Route::get ('dutch/some/route ' , function () {
103
103
return App::getLocale ();
104
- })->middleware (['web ' , SetLocale::class ]);
104
+ })->middleware (['web ' ]);
105
105
106
106
$ response = $ this ->get ('dutch/some/route ' );
107
107
@@ -121,11 +121,11 @@ public function you_can_use_multiple_slugs_for_a_locale()
121
121
122
122
Route::get ('dutch/some/route ' , function () {
123
123
return App::getLocale ();
124
- })->middleware (['web ' , SetLocale::class ]);
124
+ })->middleware (['web ' ]);
125
125
126
126
Route::get ('nederlands/some/route ' , function () {
127
127
return App::getLocale ();
128
- })->middleware (['web ' , SetLocale::class ]);
128
+ })->middleware (['web ' ]);
129
129
130
130
$ response = $ this ->get ('dutch/some/route ' );
131
131
@@ -152,7 +152,7 @@ public function it_looks_for_custom_domains()
152
152
Route::group (['domain ' => 'dutch.test ' ], function () {
153
153
Route::get ('some/route ' , function () {
154
154
return App::getLocale ();
155
- })->middleware (['web ' , SetLocale::class ]);
155
+ })->middleware (['web ' ]);
156
156
});
157
157
158
158
$ response = $ this ->get ('http://dutch.test/some/route ' );
@@ -174,13 +174,13 @@ public function you_can_use_multiple_domains_for_a_locale()
174
174
Route::group (['domain ' => 'dutch.test ' ], function () {
175
175
Route::get ('some/route ' , function () {
176
176
return App::getLocale ();
177
- })->middleware (['web ' , SetLocale::class ]);
177
+ })->middleware (['web ' ]);
178
178
});
179
179
180
180
Route::group (['domain ' => 'nederlands.test ' ], function () {
181
181
Route::get ('some/route ' , function () {
182
182
return App::getLocale ();
183
- })->middleware (['web ' , SetLocale::class ]);
183
+ })->middleware (['web ' ]);
184
184
});
185
185
186
186
$ response = $ this ->get ('http://dutch.test/some/route ' );
@@ -206,7 +206,7 @@ public function it_checks_for_a_configured_omitted_locale()
206
206
207
207
Route::get ('some/route ' , function () {
208
208
return App::getLocale ();
209
- })->middleware (['web ' , SetLocale::class ]);
209
+ })->middleware (['web ' ]);
210
210
211
211
$ response = $ this ->get ('some/route ' );
212
212
@@ -227,7 +227,7 @@ public function it_looks_for_a_locale_on_the_authenticated_user()
227
227
228
228
Route::get ('some/route ' , function () {
229
229
return App::getLocale ();
230
- })->middleware (['web ' , SetLocale::class ]);
230
+ })->middleware (['web ' ]);
231
231
232
232
$ response = $ this ->actingAs ($ user )->get ('some/route ' );
233
233
@@ -252,7 +252,7 @@ public function it_will_bypass_missing_attribute_exception_if_the_locale_attribu
252
252
253
253
Route::get ('some/route ' , function () {
254
254
return App::getLocale ();
255
- })->middleware (['web ' , SetLocale::class ]);
255
+ })->middleware (['web ' ]);
256
256
257
257
$ response = $ this ->actingAs ($ user )->get ('some/route ' );
258
258
@@ -271,7 +271,7 @@ public function it_looks_for_a_locale_in_the_session()
271
271
272
272
Route::get ('some/route ' , function () {
273
273
return App::getLocale ();
274
- })->middleware (['web ' , SetLocale::class ]);
274
+ })->middleware (['web ' ]);
275
275
276
276
$ response = $ this ->get ('some/route ' );
277
277
@@ -290,7 +290,7 @@ public function it_looks_for_a_locale_in_a_cookie()
290
290
291
291
Route::get ('some/route ' , function () {
292
292
return App::getLocale ();
293
- })->middleware (['web ' , SetLocale::class ]);
293
+ })->middleware (['web ' ]);
294
294
295
295
$ response = $ this ->withCookie ($ this ->cookieName , $ cookie )
296
296
->get ('some/route ' );
@@ -310,7 +310,7 @@ public function it_looks_for_a_locale_in_the_browser()
310
310
311
311
Route::get ('some/route ' , function () {
312
312
return App::getLocale ();
313
- })->middleware (['web ' , SetLocale::class ]);
313
+ })->middleware (['web ' ]);
314
314
315
315
$ response = $ this ->get ('some/route ' );
316
316
@@ -329,7 +329,7 @@ public function it_returns_the_best_match_when_a_browser_locale_is_used()
329
329
330
330
Route::get ('some/route ' , function () {
331
331
return App::getLocale ();
332
- })->middleware (['web ' , SetLocale::class ]);
332
+ })->middleware (['web ' ]);
333
333
334
334
$ response = $ this ->get ('some/route ' );
335
335
@@ -346,7 +346,7 @@ public function it_looks_for_the_current_app_locale()
346
346
347
347
Route::get ('some/route ' , function () {
348
348
return App::getLocale ();
349
- })->middleware (['web ' , SetLocale::class ]);
349
+ })->middleware (['web ' ]);
350
350
351
351
$ response = $ this ->get ('some/route ' );
352
352
@@ -370,7 +370,7 @@ public function trusted_detectors_ignore_supported_locales_and_may_set_any_local
370
370
Route::group ($ routeAction , function () {
371
371
Route::get ('some/route ' , function () {
372
372
return App::getLocale ();
373
- })->middleware (['web ' , SetLocale::class ]);
373
+ })->middleware (['web ' ]);
374
374
});
375
375
376
376
$ response = $ this ->get ('some/route ' );
0 commit comments