amir9480 / vscode-laravel-extra-intellisense

This extension adds extra autocompletion for laravel projects to VSCode.
https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.laravel-extra-intellisense
MIT License
3.44k stars 54 forks source link

can, cant #19

Closed adam-aido closed 4 years ago

adam-aido commented 4 years ago

I guess theres is missing rule for methods can and cant. With this code in a controller:

$user = Auth::user();
$user->can('sth');
$user->cant('sth');

intelephense will throw error Undefined method.

amir9480 commented 4 years ago

Hello.

for Facades, you should use: https://github.com/barryvdh/laravel-ide-helper

Laravel Extra Intellisense is only for providing string parts of codes. I gonna check for the string part of can,cant to see its possible to implement or not as soon as I can.