Advanced Usage

PhpStorm Interaction

{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

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:
  • has parameter = YES
  • Prefix: <?php echo \\Rawilk\\FormComponents\\Facades\\FormComponents::outputStyles(
  • Suffix: ); ?>
  • has parameter = YES
  • Prefix: <?php echo \\Rawilk\\FormComponents\\Facades\\FormComponents::outputScripts(
  • Suffix: ); ?>
  • has parameter = YES
  • Prefix: <?php echo \\Rawilk\\FormComponents\\Facades\\FormComponents::javaScript(
  • Suffix: ); ?>
Previous
Customizing CSS
Caught a mistake? Suggest an edit on GitHub