KontoTextblocksTable
This commit is contained in:
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
|
||||
{
|
||||
return $table
|
||||
->defaultPaginationPageOption(5)
|
||||
->columns([
|
||||
TextColumn::make('textblock_kennung.name')
|
||||
->label('Kennung')
|
||||
->color('info')
|
||||
->wrap()
|
||||
->description(function ($record) {
|
||||
|
||||
@@ -13,8 +13,10 @@ class TextblocksTable
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->defaultPaginationPageOption(5)
|
||||
->columns([
|
||||
TextColumn::make('textblock_kennung.name')
|
||||
->label('Kennung')
|
||||
->color('info')
|
||||
->wrap()
|
||||
->description(function ($record) {
|
||||
|
||||
@@ -21,6 +21,6 @@ class KontoTextblock extends Model
|
||||
|
||||
public function textblock_kennung()
|
||||
{
|
||||
return $this->hasMany(TextblockKennung::class, 'id');
|
||||
return $this->hasMany(TextblockKennung::class, 'id', 'textblock_kennung_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user