1. Go to this page and download the library: Download pyro/ide-helper library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pyro / ide-helper example snippets
\Pyro\IdeHelper\IdeHelperServiceProvider::class;
// this will make auth()->user()->hasPermission() etc resolve properly, check screenshot below
class MyDocBlocks {
public function handle(\Laradic\Generators\Doc\DocRegistry $registry){
$registry->getClass(\Illuminate\Contracts\Auth\Guard::class)
->getMethod('user')
->ensureReturn([\Illuminate\Contracts\Auth\Authenticatable::class, \Anomaly\UsersModule\User\Contract\UserInterface::class]);
}
}