Nikos Koukos
Nikos Koukos
FFilament
Created by RawaN on 2/12/2025 in #❓┊help
How to use filament notification outside the panel
4 replies
FFilament
Created by RawaN on 2/12/2025 in #❓┊help
How to use filament notification outside the panel
in your layout file you can use
@livewire('notifications')
@livewire('notifications')
and then inside a livewire component
use Filament\Notifications\Notification;
use Filament\Notifications\Notification;
and then you can use the Notification as you want, probably you will also need to
php artisan filament:install --notifications
php artisan filament:install --notifications
4 replies
FFilament
Created by Nikos Koukos on 2/12/2025 in #❓┊help
Problem with viewAny in a FIlament Resource
yes if the user has a level more than 30 the it should be able to see the specific resource i am sorry can you explain me what you mean by the process you wrote ?
11 replies
FFilament
Created by Nikos Koukos on 2/12/2025 in #❓┊help
Problem with viewAny in a FIlament Resource
Well it does not work because as i told you a receive that the property "level" is null and the whole auth()->user() is null
11 replies
FFilament
Created by Nikos Koukos on 2/12/2025 in #❓┊help
Problem with viewAny in a FIlament Resource
and yes if i return true i can login successfully
11 replies
FFilament
Created by Nikos Koukos on 2/12/2025 in #❓┊help
Problem with viewAny in a FIlament Resource
Well i am sure the user exists in my table and without this function i can loggin successfully. For example lets say i have in my table a column in the users table that is level and i do
auth()->user()->level > 30
auth()->user()->level > 30
i receive this error:
Attempt to read property "level" on null
Attempt to read property "level" on null
when i click the Log in
11 replies
FFilament
Created by Nikos Koukos on 2/7/2025 in #❓┊help
Accessing the selected records before firing a bulk action
actually i want to access the selected records before i click the action, before is not working until i click the the bulk action
5 replies
FFilament
Created by Nikos Koukos on 6/29/2024 in #❓┊help
FIlament Bulk Action inside Livewire Component
I have also tried doing
selectable()
selectable()
on the table and in the Actions to add an Action based on this but i have exactly the same problem when trying to select the rows as i had before
3 replies
FFilament
Created by Nikos Koukos on 4/30/2024 in #❓┊help
Adding a table to a Livewire component
Perfect i needed to add them to the app layout and also to do this
npm install tailwindcss @tailwindcss/forms @tailwindcss/typography postcss postcss-nesting autoprefixer --save-dev
npm install tailwindcss @tailwindcss/forms @tailwindcss/typography postcss postcss-nesting autoprefixer --save-dev
and
import preset from './vendor/filament/support/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
}
import preset from './vendor/filament/support/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
}
Thank you
7 replies
FFilament
Created by Nikos Koukos on 4/30/2024 in #❓┊help
Adding a table to a Livewire component
I have already done
composer require filament/filament:"^3.2" -W

php artisan filament:install --panels
composer require filament/filament:"^3.2" -W

php artisan filament:install --panels
Because i already have an admin panel for my project and i wanted to add a table to the front.
7 replies
FFilament
Created by Nikos Koukos on 4/25/2024 in #❓┊help
RelationManager on View Resource
thank you very much this worked but need the page class as a string not as a class
public static function canViewForRecord(User|Model $ownerRecord, string $pageClass): bool
{
return $pageClass == 'App\Filament\Resources\MyResource\Pages\ViewMyResource';
}
public static function canViewForRecord(User|Model $ownerRecord, string $pageClass): bool
{
return $pageClass == 'App\Filament\Resources\MyResource\Pages\ViewMyResource';
}
9 replies
FFilament
Created by Nikos Koukos on 4/25/2024 in #❓┊help
RelationManager on View Resource
Perfect @ChesterS this was exactly what i wanted thank you, and maybe you also know how to hide it from the Edit Page and Show it only on the View Page?
9 replies