Update readme.md

This commit is contained in:
Barry vd. Heuvel
2015-06-25 13:32:53 +02:00
parent 0373861536
commit 19f7d75c10
+3
View File
@@ -26,6 +26,9 @@ It's possible to generate a PhpStorm meta file, to [add support for factory desi
/** @var \Illuminate\Foundation\Application $app */ /** @var \Illuminate\Foundation\Application $app */
$app->make('events')->fire(); $app->make('events')->fire();
// When the key is not found, it uses the argument as class name
app('App\SomeClass');
Pre-generated example: https://gist.github.com/barryvdh/bb6ffc5d11e0a75dba67 Pre-generated example: https://gist.github.com/barryvdh/bb6ffc5d11e0a75dba67
> Note: You might need to restart PhpStorm and make sure `.phpstorm.meta.php` is indexed. > Note: You might need to restart PhpStorm and make sure `.phpstorm.meta.php` is indexed.