Laravel + PhpStorm:是否可以一步一步地从路由定义中起作用? [英] Laravel + PhpStorm: is it possible jump to function from routes definition in one step?

查看:83
本文介绍了Laravel + PhpStorm:是否可以一步一步地从路由定义中起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有很多路线,例如:

We have quite a lot routes, such as:

Route::get('/','WebController@index');

当我想跳到功能上时,我必须:

When I want to jump to function, I have to:

  1. 转到类 WebController
  2. 转到函数 index()

是否可以一步一步地从路由定义中起作用?

Is it possible jump to function from routes definition in one step?

推荐答案

您应该必须在php strom中安装laravel插件.-在设置(首选项)下|插件,单击浏览存储库..."按钮,然后搜索 Laravel .接下来,我们可以使用安装插件"按钮或上下文菜单继续进行插件安装.重新启动IDE以完成插件的安装.接下来,我们将必须在项目中启用Laravel插件.我们可以通过设置"(首选项")|其他设置|Laravel插件|为该项目启用插件.我们将不得不再次重新启动IDE,以加载Laravel插件的其他功能.参考: https://confluence.jetbrains.com/display/PhpStorm/Laravel + Development + using + PhpStorm

You should have to install plugin for laravel in php strom. - Under Settings (Preferences) | Plugins, click the Browse repositories... button and search for Laravel. Next, we can use the Install plugin button or the context menu to proceed with plugin installation. Restart the IDE to complete the installation of the plugins. Next, we will have to enable the Laravel Plugin in our project. We can do this from Settings (Preferences) | Other Settings | Laravel Plugin | Enable Plugin for this Project. We'll have to restart the IDE once more to load the plugin's additional features for Laravel. Refrence: https://confluence.jetbrains.com/display/PhpStorm/Laravel+Development+using+PhpStorm

这篇关于Laravel + PhpStorm:是否可以一步一步地从路由定义中起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆