laravel-idea / plugin

Laravel Idea plugin for PhpStorm
https://laravel-idea.com/
177 stars 7 forks source link

[Feature Request]: Support new `CollectedBy` attribute #1091

Open dmason30 opened 4 weeks ago

dmason30 commented 4 weeks ago

Feature Description

They recently added new way to define custom collections.

Thanks in advance if you decide to support it 👍

https://laravel.com/docs/11.x/eloquent-collections#custom-collections

<?php

namespace App\Models;

use App\Support\UserCollection;
use Illuminate\Database\Eloquent\Attributes\CollectedBy;
use Illuminate\Database\Eloquent\Model;

#[CollectedBy(UserCollection::class)]
class User extends Model
{
    // ...
}