Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel + PhpStorm: is it possible jump to function from routes definition in one step?

Tags:

We have quite a lot routes, such as:

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

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

  1. go to the class WebController
  2. go to the function index()

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

like image 461
Sayakiss Avatar asked Apr 04 '18 07:04

Sayakiss


People also ask

Is PhpStorm good for Laravel?

PhpStorm provides full support of the Laravel Blade template engine. It highlights various Blade syntax constructs, as well as any HTML, JavaScript and CSS code inside the templates. Besides syntax highlighting, PhpStorm provides several other Blade-specific features.

What is Route and controller in Laravel?

Routing in Laravel allows users to route all their application demands to its appropriate controller. Most primary routes in Laravel acknowledge and accept a Uniform Asset Identifier together with a closure, giving a simple and expressive way of routing.

What is update route in Laravel?

The two initial options you have are either have the same method in your route file as your form or you could also set your route to: Route::match(['put', 'patch'], '/company/update/{id}','CompanyMasterController@update'); The above will allow both methods to be used for that route.


1 Answers

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

like image 158
Hassan Raza Avatar answered Sep 19 '22 12:09

Hassan Raza