Some properties are set in BaseController, User, Param, etc. How to call it from other location?
For example, when an administrator updates user information, logs need to be recorded, so the user.update event is triggered
$response = Event::fire('user.update',array($user));
Then in UserHandler@update, you need to obtain the current user's id, role and other information, which is in BaseControler
public $user;
public $param;
...
__construct(){
$this->user = Auth::user();
$this->param = Input::all();
...
}
How to get the current controller instance in UserHandler@update to access parameters such as $user, $param?