Сейчас я изучаю PHP-Filament и не могу понять, как отключить панель управления по умолчанию.
Другой мой вопрос:
Почему стек ниже не по центру?
Код: Выделить всё
public static function table(Table $table): Table
{
return $table
->columns([
Split::make([
TextColumn::make('lastname')
->sortable()
->searchable()
->placeholder('none')
->label(__('messages.lastname')),
Stack::make([
TextColumn::make('phone_number')
->sortable()
->searchable()
->placeholder('none')
->label(__('messages.phone_number'))
->url(fn($record) => "tel:{$record->phone_number}")
->icon('fas-phone-volume'),
TextColumn::make('email')
->sortable()
->searchable()
->placeholder('none')
->label(__('messages.email'))
->url(fn($record) => "mailto:{$record->email}")
->icon('fas-envelope')
])->alignCenter()
])
])
->filters([
//
])
->actions([
EditAction::make(),
Tables\Actions\Action::make('Details')->button() //->url(route(''))
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
Подробнее здесь: https://stackoverflow.com/questions/768 ... -dashboard