category relationship
This commit is contained in:
@ -14,13 +14,13 @@ class VehicleRelationManager extends RelationManager
|
||||
{
|
||||
protected static string $relationship = 'vehicle';
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'type';
|
||||
protected static ?string $recordTitleAttribute = 'id';
|
||||
|
||||
public static function form(Form $form): Form
|
||||
{
|
||||
return $form
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('type')
|
||||
Forms\Components\TextInput::make('id')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
]);
|
||||
@ -30,7 +30,7 @@ class VehicleRelationManager extends RelationManager
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
Tables\Columns\TextColumn::make('type'),
|
||||
Tables\Columns\TextColumn::make('id'),
|
||||
Tables\Columns\TextColumn::make('owner'),
|
||||
Tables\Columns\TextColumn::make('year'),
|
||||
Tables\Columns\TextColumn::make('make'),
|
||||
|
Reference in New Issue
Block a user