|
@@ -241,7 +241,7 @@ |
|
|
block discarded – undo |
|
241
|
241
|
*/ |
|
242
|
242
|
protected function addUser( \Aimeos\MShop\Context\Item\Iface $context ) : \Aimeos\MShop\Context\Item\Iface |
|
243
|
243
|
{ |
|
244
|
|
- $key = collect( config( 'routes' ) )->where( 'prefix', optional(Route::getCurrentRoute())->getPrefix() )->keys()->first(); |
|
|
244
|
+ $key = collect( config( 'routes' ) )->where( 'prefix', optional( Route::getCurrentRoute() )->getPrefix() )->keys()->first(); |
|
245
|
245
|
$guard = data_get( config( 'guards' ), $key, Auth::getDefaultDriver() ); |
|
246
|
246
|
|
|
247
|
247
|
if( ( $userid = Auth::guard( $guard )->id() ) !== null ) { |
Please login to merge, or discard this patch.