Inherits from HasMany.
* has the same capabilities.
A relationship field in Laravel of type MorphMany.
The formatted parameter is not used in the MorphMany field!
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
)