Way to use Config::set() twice in a function
问题 I have googled and stackoverflowed (if you may) for this question, and couldn't find a succint enough answer to it: (some ref: Laravel 4: when using Config::set to change auth.model then Auth::user() not work , Laravel 5.2 how to use config::set in middleware) How can I successfully set a variable twice at runtime with Config::set() in Laravel 5.2.*? Here is an example of what I tried to achieve: I have two tables companies and users (they both login from different routes with JWTAuth). Now I