Laravel Plugin

Compatible with: IntelliJ IDEA PhpStorm
16.04.2017
397 257
Laravel Plugin

Issues
Install
  • Install plugin and active it per Project under "Settings > Languages & Frameworks > PHP > Laravel"
  • Use "Laravel IDE Helper Generator" to generate ide classes
  • Configure root Views directory, if not using default file structure
  • (Enable autopopup for completion in plugin setting)

Features
  • PHP/Route: Controller completion and goto
  • PHP/Route: Router::resource references
  • PHP/Route: detect route names on "as" key
  • PHP/View: completion and goto for view templates
  • PHP/Config: "providers" class array completion
  • PHP/Config: Config key indexer, completion and goto
  • PHP/Translation: Translation key indexer, completion and goto
  • PHP: Service dic
  • Blade: extends, include and Php usage linemarker
  • Blade: section, yield, stack overwrite and implements linemarker
  • Blade: Improvements in Blade template name completion and navigation
  • Blade: trans directive
  • Template: Index for Php usage
Todo
  • Try to remove "IDE Helper Generator" deps; mostly done :)
  • Require Symfony2 Plugin, to reduce duplicate code
  • Support trans/transChoice translation syntax

Download plugin

Recent change notes

0.14.2
  • Additional check for Route::resource analyzer #130 #131 @adelf
  • Fixed duplicates in @lang blade directive #133 @adelf
  • Feature prioritized lang goto #134 @adelf
0.14.1
  • Add TypeProvider for Blade @inject Directive #128
  • Implement PhpTypeProvider3 for type resolving #78
  • Support class constant of provider alias
  • Support subdirectories of routes definitions #129 #69
0.14
  • Support for __() and trans_choice() #124 #125 @adelf
  • Fix incorrect route name generation for Route::resource #119 @adelf
  • Add view references for the Mailer Class #126 @diogogomeswww
  • PhpStorm 2017.1 migration for new directive support in Blade views
  • Add linemaker for Blade slot overwrites inside components
0.13.2
  • Replace deprecated api usages
  • Prevent duplicates on blade templates Related files #112 @adelf
  • Remove index calling in RouteGroupUtil. Fixes IndexNotReadyException #108, #109 @adelf
  • Route::resource route names support #113 @adelf
0.13.1
  • Fix navigation to declaration doesn't work when @component has the optional array parameter #105
  • Fix route controller/resource completion #106 #107 @adelf
0.13
  • Extract to template file #102 #23 @adelf
  • Add index for custom Blade directives abd provide completion #103 #88 @adelf
  • Partial namespaced controllers #95 @adelf
0.12.4
  • Fix thread exception in template settings forms #99
0.12.3
  • Add more pattern and language validation for completion; fix npe #96
0.12.2
  • Fix npe in ControllerReferences #92 #90 #93 @adelf
  • Support Laravel 5.4 blade component directive #91
0.12.1
  • Support template "each" directive #86
  • Add Blade "inject" directive for service injection #87
  • Add Blade "includeIf" directive template references #89
0.12
  • Remove AuthorizesRequests trait methods #52
  • Add references for Blade @push @stack directives #73
  • Add PhpStorm environments up to 2016.3.2 for travis testing
  • Add dialog for automatically detect the need to enable plugin #80
0.11
  • Move settings form into PHP related menu #63
  • Support route file structure of Laravel 5.3 and include route name index instead in of live extract "as" routes #69
  • Drop project usage for LaravelSettings and make it stateless to prevent memory leaks; cleanup unused code of LaravelProjectSettingsForm
  • Fix npe in ControllerReferences #66
  • Fix locating translations doesn't seem to work when using a locale which is not an official locale; support "fr-FR" #58
  • Travis testing environment update for PhpStorm 2016.2.1
  • Fix settings for template path reset was not filled
0.11
  • Fix Plugin throws java.util.ConcurrentModificationException #64

open full changelog