K
K
khodos_dmitry2019-09-02 17:20:14
phpstorm
khodos_dmitry, 2019-09-02 17:20:14

Why doesn't phpstorm index laravel internals?

Created a project in Laravel. Empty.
I click on the str_random function (and others), writes:
"Cannot find declaration to go to".

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
khodos_dmitry, 2019-09-05
@khodos_dmitry

Many folders have been excluded from indexing by default. If anyone knows why, please write in the comments.
Removed them from the "excluded" and the problem was solved.
5d70c18a86707320642693.jpeg

A
Alexander Aksentiev, 2019-09-02
@Sanasol

https://github.com/barryvdh/laravel-ide-helper

K
Konata Izumi, 2019-09-02
@Konata69lol

@deprecated Str::random() should be used directly instead. Will be removed in Laravel 6.0.
I'll translate if you don't understand.
Laravel version 6.0 will remove the str_random() global function. Use via the Str::random() helper.
In your case, it is not clear which version of Laravel you have and why the storm is not indexing.

R
Rustam Sadykov, 2019-09-03
@TrueKanonir

Well, here it is possible that the storm itself did not index. Try demolishing the vendor folder and then composer update.
After that, the storm should re-index everything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question