plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Feature Request]: Support new `CollectedBy` attribute

Open dmason30 opened this issue 1 year ago • 0 comments

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
{
    // ...
}

dmason30 avatar Oct 24 '24 14:10 dmason30