KontoTextblocksTable

This commit is contained in:
salam committed 2025-10-12 12:01:53 +02:00
1 parent eaed59cceb
commit b004542988
3 files changed
+5 -1

No files matched your search

@@ -17,8 +17,10 @@ class KontoTextblocksTable
public static function configure(Table $table): Table public static function configure(Table $table): Table
{ {
return $table return $table
->defaultPaginationPageOption(5)
->columns([ ->columns([
TextColumn::make('textblock_kennung.name') TextColumn::make('textblock_kennung.name')
->label('Kennung')
->color('info') ->color('info')
->wrap() ->wrap()
->description(function ($record) { ->description(function ($record) {
@@ -13,8 +13,10 @@ class TextblocksTable
public static function configure(Table $table): Table public static function configure(Table $table): Table
{ {
return $table return $table
->defaultPaginationPageOption(5)
->columns([ ->columns([
TextColumn::make('textblock_kennung.name') TextColumn::make('textblock_kennung.name')
->label('Kennung')
->color('info') ->color('info')
->wrap() ->wrap()
->description(function ($record) { ->description(function ($record) {
+1 -1
View File
@@ -21,6 +21,6 @@ class KontoTextblock extends Model
public function textblock_kennung() public function textblock_kennung()
{ {
return $this->hasMany(TextblockKennung::class, 'id'); return $this->hasMany(TextblockKennung::class, 'id', 'textblock_kennung_id');
} }
} }