mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18:13:11 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
692b223e94 | ||
|
|
f321828778 |
@@ -21,11 +21,13 @@ It's possible to generate a PhpStorm meta file, to [add support for factory desi
|
||||
php artisan ide-helper:meta
|
||||
|
||||
app('events')->fire();
|
||||
\App::make('events')->..
|
||||
\App::make('events')->fire();
|
||||
|
||||
/** @var \Illuminate\Foundation\Application $app */
|
||||
$app->make('events')->fire();
|
||||
|
||||
Pre-generated example: https://gist.github.com/barryvdh/bb6ffc5d11e0a75dba67
|
||||
|
||||
> Note: This is only available in the `@dev` stability, until a new release is tagged.
|
||||
> Note: You might need to restart PhpStorm and make sure `.phpstorm.meta.php` is indexed.
|
||||
|
||||
### Automatic phpDoc generation for Laravel Facades
|
||||
|
||||
@@ -41,12 +41,12 @@ class MetaCommand extends Command {
|
||||
/** @var \Illuminate\View\Factory */
|
||||
protected $view;
|
||||
|
||||
protected $methods = [
|
||||
protected $methods = array(
|
||||
'\Illuminate\Foundation\Application::make',
|
||||
'\Illuminate\Container\Container::make',
|
||||
'\App::make',
|
||||
'app',
|
||||
];
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -81,10 +81,10 @@ class MetaCommand extends Command {
|
||||
}
|
||||
}
|
||||
|
||||
$content = $this->view->make('laravel-ide-helper::meta', [
|
||||
$content = $this->view->make('laravel-ide-helper::meta', array(
|
||||
'bindings' => $bindings,
|
||||
'methods' => $this->methods,
|
||||
])->render();
|
||||
))->render();
|
||||
|
||||
$written = $this->files->put($filename, $content);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user