Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kickthemooon's avatar

Laravel IDE helper support for traits

I wanted to ask if anyone has a advice on how to generate the ide helper for the methods of traits like when you use packages like entrust or spaties packages and add their traits to the user model...

I have the laravel ide helper package but not sure how to make it support the traits...

0 likes
1 reply
jimmck's avatar

@kickthemooon You can add the @property tag to your file to document info and Storm will display it during editing.

<?php namespace App\lib\nba\reader;

use jimmck\myutils\excel\CSVReader;
use jimmck\myutils\excel\CSVColumn;

 /**
 * @property CSVPlayers $fanDuelId
 * @property CSVPlayers $firstName
 * @property CSVPlayers $lastName
 * @property CSVPlayers $position
 * @property CSVPlayers $teamCode
 */
class CSVPlayers extends CSVReader
{
    private $fanDuelId;
    private $firstName;
    private $lastName;
    private $position;
    private $teamCode;

...

Please or to participate in this conversation.