@@ -73,6 +73,15 @@ class MetaCommand extends Command
7373 '\Illuminate\Support\Facades\Config::set() ' ,
7474 ];
7575
76+ protected $ userMethods = [
77+ '\auth()->user() ' ,
78+ '\Illuminate\Contracts\Auth\Guard::user() ' ,
79+ '\Illuminate\Support\Facades\Auth::user() ' ,
80+ '\request()->user() ' ,
81+ '\Illuminate\Http\Request::user() ' ,
82+ '\Illuminate\Support\Facades\Request::user() '
83+ ];
84+
7685 protected $ templateCache = [];
7786
7887 /**
@@ -135,6 +144,8 @@ public function handle()
135144 return gettype ($ value );
136145 });
137146
147+ $ defaultUserModel = $ this ->config ->get ('auth.providers.users.model ' , $ this ->config ->get ('auth.model ' , 'App\User ' ));
148+
138149 $ content = $ this ->view ->make ('ide-helper::meta ' , [
139150 'bindings ' => $ bindings ,
140151 'methods ' => $ this ->methods ,
@@ -143,6 +154,8 @@ public function handle()
143154 'configValues ' => $ configValues ,
144155 'expectedArgumentSets ' => $ this ->getExpectedArgumentSets (),
145156 'expectedArguments ' => $ this ->getExpectedArguments (),
157+ 'userModel ' => $ defaultUserModel ,
158+ 'userMethods ' => $ this ->userMethods ,
146159 ])->render ();
147160
148161 $ filename = $ this ->option ('filename ' );
0 commit comments