Different toast alignments for frontend
I have an admin panel, and I am using the Toast notifications in a regular livewire component (https://filamentphp.com/docs/3.x/notifications/installation).
The issue I am having is I cannot find a way of changing the position of the toast notifications only on the frontend.
The code I am using to change it.
I have tried the following:
It's like these attempts cannot tell if the livewire update request is frontend/admin panel so does not work, and Filament is generating the position during this request.
The issue I am having is I cannot find a way of changing the position of the toast notifications only on the frontend.
The code I am using to change it.
I have tried the following:
- Adding it inside
View::composer('layouts.app', function() {}) - Creating a middleware and applying it to the frontend routes.
- Using
request()->is('admin/*')
It's like these attempts cannot tell if the livewire update request is frontend/admin panel so does not work, and Filament is generating the position during this request.
Solution
Ok have figured it out with:
which makes it slide in from the top (and is in the middle) like default
which makes it slide in from the top (and is in the middle) like default
