Closed diogogomeswww closed 5 years ago
do you have an example snippet where you expect it?
Hi @Haehnchen I've edited the description to include the examples screenshots. Please let me know what you think about it and if I can help.
got it. this search its not anything by this plugin. i am wondering why you need to copy it. the right way would to click directly in the editor string.
A click behavoir should be added in the editor, this can be approved. so where do you copied to from? ;)
Ah, got it. So the search can't be enhanced/changed by the plugin, correct?
If true we can close this issue, since the string Class@Method name won't appear in the editor.
It will appear on the terminal when we run: php artisan route:list
, in the browser in laravel telescope
, a few screenshots below:
I've previously open a support ticket on Jetbrains, but they sent me here...
I can only suggest to use PhpStorm style of navigating. Navigate > Class.. or Ctrl-N or Cmd-N . Then enter, for example "SDC" for finding "SkusDisplayController" class and then Ctrl-12(Cmd-F12) and enter "index". Pretty quickly.
yes, I know, but it could be faster if it would work with Class@Method formatting.
But thanks for your help and attention!
In case its still relevant for someone...
You can use PhpStorm's Ctrl+Click
navigation if building routes like
Route::post('logout', [LoginController::class, 'logout'])->name('logout');
Works for both LoginController
and logout
method.
For that you just need to do three simple steps:
use Illuminate\Support\Facades\Route;
)$namespace
variable in App/Providers/RouteServiceProvider
to empty string, so laravel would not append anything to already fully qualified controller namespacesOf cource, used imports may stack up for big projects, but PhpStorm will conviniently collapse them, so you won't even notice.
Right now we can find an symbol with the Class::Method format.
But Laravel uses Class@Method everywhere.
So whenever I want to navigate to that method I need to copy the text and change the @ to :: to work.
It would be very helpful if it would work out-of-the-box with the Class@Method format.
Example of searching for Class@Method:![image](https://user-images.githubusercontent.com/11543163/61855374-d9edcf80-aeb7-11e9-9297-b7a086c4b501.png)
But if I search for Class::Method![image](https://user-images.githubusercontent.com/11543163/61855401-ea9e4580-aeb7-11e9-8b6a-fe770493b3d0.png)
Thanks for great plugin!