I have a function in the MissingData model, that is called from the MissingDataController:
public function store(Request $request)
{
$missingData = MissingData::where('operation_id', 1)->firstOrFail();
$missingData->fillData();
}
Code works great, but PhpStorm cannot open fillData() when using Ctrl + B. In general, this happens when $missingData is not a MissingData model. But here, when I dd($missingData), it returns a App\Models\MissingData instance.
I also tried to invalidate PhpStorm Cache, but it didn't work.
Why is it happening ? For all other methods, PhpStorm works fine.