I have tried different methods discussed in here but not successful to my problem. Assumptions: 1. Failure to group routes under the same middleware group. 2. Get all the sessions required from web middleware and replace them into global middleware But I don't know how? help, please. Here are my files
You have to call user helper function first :
Auth::user()->id;