phplaravellaravel-10laravel-filament

How to disable the default dashboard?


First question

I am currently learning PHP-Filament and I cannot figure out how to disable the default dashboard.

My other question is: Why isn't the Stack below centered?

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(),
            ]);
    }

I have tried to look it up but I have found nothing interesting.


Solution

  • See the documentation: https://filamentphp.com/docs/3.x/panels/installation

    php artisan filament:install --panels

    This will create and register a new Laravel service provider called app/Providers/Filament/AdminPanelProvider.php.

    In this file, you must comment the relevant line:

    ->pages([
                // Pages\Dashboard::class,
            ])