Наследует HasMany.
* имеет те же возможности.
Поле отношения в Laravel типа MorphMany
.
Параметр formatted
не используется в поле MorphMany
!
use App\MoonShine\Resources\CommentResource;
use MoonShine\Laravel\Fields\Relationships\MorphMany;
MorphMany::make(
'Comments',
'comments',
resource: CommentResource::class
)
namespaces
use App\MoonShine\Resources\CommentResource;
use MoonShine\Laravel\Fields\Relationships\MorphMany;
MorphMany::make(
'Comments',
'comments',
resource: CommentResource::class
)
use App\MoonShine\Resources\CommentResource;
use MoonShine\Laravel\Fields\Relationships\MorphMany;
MorphMany::make(
'Comments',
'comments',
resource: CommentResource::class
)
namespaces
use App\MoonShine\Resources\CommentResource;
use MoonShine\Laravel\Fields\Relationships\MorphMany;
MorphMany::make(
'Comments',
'comments',
resource: CommentResource::class
)
use App\MoonShine\Resources\CommentResource;
use MoonShine\Laravel\Fields\Relationships\MorphMany;
MorphMany::make(
'Comments',
'comments',
resource: CommentResource::class
)