Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #424
    dan
    Participant

    Hi,

    I have a flash message notification using the filament notifications. The default location is on top right .

    Default setting on config/filament.php is as follows:

    ‘notifications’ => [
    ‘vertical_alignment’ => ‘top’,
    ‘alignment’ => ‘right’,
    ],

    I wanted to change it to top-center and did the following.

    ‘notifications’ => [
    ‘vertical_alignment’ => ‘top’,
    ‘alignment’ => ‘center’,
    ],

    However, its not working. Do I have to type something on the terminal to make this work? I have clear cache on my browser.

    #425

    It looks like you are changing it in the config/filament.php which is the configuration file for filamentPHP admin panel.

    If you are looking to change the location of the notification pop up for non-admin purposes by using the notifications package you have to publish the package notification file (filamentPHP admin and notification package have two separate configuration file

    Run:

    php artisan vendor:publish –tag=notifications-config

    Then if you want top-center:

    ‘layout’ => [
    ‘alignment’ => [
    ‘horizontal’ => ‘center’,
    ‘vertical’ => ‘top’,
    ],
    ],

    Reference:

    https://filamentphp.com/docs/2.x/notifications/installation#publishing-configuration

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.