laravel-form-components
Advanced Usage
PhpStorm Interaction
On this page
{note} You're browsing the documentation for an old version of laravel-form-components. Consider upgrading your project to v8. Check your version with the following command:
`composer show rawilk/laravel-form-components`
Extending PhpStorm
You may wish to extend PhpStorm to extend the blade directives of this package:
- In PhpStorm, open Preferences, and navigate to Languages and Frameworks -> PHP -> Blade (File | Settings | Languages & Frameworks | PHP | Blade)
 - Uncheck "Use default settings", then click on the Directives tab.
 - Add the following new directives for the laravel-form-components package:
 
@fcStyles
- has parameter = YES
 - Prefix: 
<?php echo \\Rawilk\\FormComponents\\Facades\\FormComponents::outputStyles( - Suffix: 
); ?> 
@fcScripts
- has parameter = YES
 - Prefix: 
<?php echo \\Rawilk\\FormComponents\\Facades\\FormComponents::outputScripts( - Suffix: 
); ?> 
@fcJavaScript
- has parameter = YES
 - Prefix: 
<?php echo \\Rawilk\\FormComponents\\Facades\\FormComponents::javaScript( - Suffix: 
); ?>