{note} You're browsing the documentation for an old version of laravel-form-components. Consider upgrading your project to v6.

PhpStorm Interaction

Extending PhpStorm

You may wish to extend PhpStorm to extend the blade directives of this package:

  1. In PhpStorm, open Preferences, and navigate to Languages and Frameworks -> PHP -> Blade (File | Settings | Languages & Frameworks | PHP | Blade)
  2. Uncheck "Use default settings", then click on the Directives tab.
  3. 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: ); ?>
← Previous Topic

Customizing CSS

Caught a mistake? Suggest an edit on Github