Laravel5.2 How to Obtain User Details in Controller inside Outside User Authentication Middleware

  question
Route::group(['middleware' => ['auth:account']], function () {
 Route::controller('account/wechat', 'Account\WechatController');
 });
 
 Route::controller('wechat/website', 'Wechat\WebsiteController');

Already logged inaccount/wechatYes, it can be used in WechatController insideAuth::user()Get user details
However, it is not available in WebsiteController. How to solve it?

I don’t know yoursmiddlewareHow exactly is this achieved, you can probably try:

Route::group(['middleware' => ['auth:account']], function () {
 Route::controller('account/wechat', 'Account\WechatController');
 Route::controller('wechat/website', 'Wechat\WebsiteController');
 });