Inherits from HasOne.
* has the same capabilities.
Relationship field in Laravel of type MorphOne
.
use App\MoonShine\Resources\ProfileResource;
use MoonShine\Laravel\Fields\Relationships\MorphOne;
MorphOne::make(
'Profile',
'profile',
resource: ProfileResource::class
)
namespaces
use App\MoonShine\Resources\ProfileResource;
use MoonShine\Laravel\Fields\Relationships\MorphOne;
MorphOne::make(
'Profile',
'profile',
resource: ProfileResource::class
)
use App\MoonShine\Resources\ProfileResource;
use MoonShine\Laravel\Fields\Relationships\MorphOne;
MorphOne::make(
'Profile',
'profile',
resource: ProfileResource::class
)
namespaces
use App\MoonShine\Resources\ProfileResource;
use MoonShine\Laravel\Fields\Relationships\MorphOne;
MorphOne::make(
'Profile',
'profile',
resource: ProfileResource::class
)
use App\MoonShine\Resources\ProfileResource;
use MoonShine\Laravel\Fields\Relationships\MorphOne;
MorphOne::make(
'Profile',
'profile',
resource: ProfileResource::class
)