Courses

Laravel Filament Admin: Practical Course

avatar

Hi @Povilas,

I just want to use my admins table for admin login. Where can I set that?

avatar

I don't think Filament supports that specifically. What you need is probably config/auth.php in Laravel, check the options here: https://github.com/laravel/laravel/blob/9.x/config/auth.php

avatar

ok, will check, but another thing which I was looking for, I want to execute some code when a new record is created or old is updated, How can we call the related hook or closure in resource?

avatar

Again, I would to it outside of Filament, with Model Observers: https://laravel.com/docs/9.x/eloquent#observers