We have quite a lot routes, such as:
Route::get('/','WebController@index');
When I want to jump to function, I have to:
WebController
index()
Is it possible jump to function from routes definition in one step?
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With