PhpStorm uses yellow font for method names if it detects that the method is in use elsewhere in the app.
It uses a grey font for unused methods.
This is really helpful for identifying stale code.
But PhpStorm doesn't recognize my methods that I am using in the /routes directory since they are called magically from a string.
For example, I am only using the sendPayout method in /routes, but the chargeCustomer is called directly from within another method.
For example, this line in /routes/web.php should ideally force the sendPayout method shown in the screenshot to appear in yellow font.
Route::post('/api/send-offer','StripeController@sendPayout');
Is there any way to get PhpStorm to recognize this, either by changing settings or using a certain plugin?
I am using PhpStorm 2019.3.1, MacOS Catalina version 10.15.2, and Laravel 5.8. I already have the Laravel plugin installed to PhpStorm.
