Developing laravel_php Tutorials with Phpstorm

Source: Internet
Author: User
Tags laravel tutorial

Develop Laravel with Phpstorm


Now Phpstorm is already an artifact boundary IDE, but when developed with Laravel, Alise's class name always has wavy lines. There is a phpstorm plugin, but it seems to support only badle templates.

Many PHP programmers use Laravel to create their applications. Laravel is a free, open source PHP Web application framework. It is based on multiple Symfony components and provides a development framework, including authentication, routing, sessions, caching and other modules.

Last summer, we introduced support for Blade. Blade is Laravel's template language, which is friendly to artists, and this laravel Programmer's command-line tool can work in Phpstorm. With the Laravel plug-in and the Laravel IDE helper, we can further extend Phpstorm support for Laravel apps. Let's see what we can do!

Laravel IDE Assistant

First confirm that Composer is available in our project and we can use the Composer | Add dependency ... Right-click menu, install Laravel IDE Helper to our project. Search for Barryvdh/laravel-ide-helper, and click Install to download and add to the project.
Register ' Barryvdh\laravelidehelper\idehelperserviceprovider ' service to our app and run artisan ide-helper:generate, Phpstorm will have the code completion function, and have laravel syntax highlighting.

Laravel plugins in the Phpstorm

To further enhance our laravel experience, we can also install the Laravel plugin. In Settings (Preferences) | Plugins, click Browse repositories ... button and search for Laravel. The Install Plugin button downloads and installs the plugin to the IDE.

Restart the IDE and enable plugins (Settings (Preferences) | Other Settings | Laravel Plugin | Enable Plugin for this Project). Phpstorm knows what the Laravel interface does and provides code completion functions (Controllers,views, routes, configuration, translations, etc.)!

Of course not only is the code auto-complete, using Ctrl+click (Cmd+click Mac OS X) or go to Declaration (goto definition) (ctrl+b/cmd+b), Phpstorm will navigate there, such as the declaration of the configuration item.

With the Blade template, the Laravel plugin can also improve the experience, such as: automatic completion of @section instructions.
Want to know more? Check out our Laravel tutorial, which contains everything phpstorm prepared for Laravel development, including code completion, navigation, automatic code checking, command line tool support, debugging, and unit testing!

Are you a laravel programmer? Try the Phpstorm 8! We have a well-prepared tutorial.

The above mentioned is the whole content of this article, I hope you can like.

http://www.bkjia.com/PHPjc/973121.html www.bkjia.com true http://www.bkjia.com/PHPjc/973121.html techarticle using Phpstorm to develop Laravel now Phpstorm is already an artifact boundary IDE, but in Laravel development, Alise class names always have wavy lines. There is a phpstor ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.