Courses

Laravel Filament Admin v2: Practical Course

Filament Installation and User Restrictions

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

avatar

Is it possible to use the panel without authentication? I'm building a desktop app using Electron and Laravel and it doesn't use users, I'd like it to open directly in the dashboard

avatar

They are planning something like that in Filament 3, but at the moment it's not (easily) possible.

avatar

I'm solving by putting a fixed fake email that is not visible to the user and only asks for the password in the form :)

avatar

Can we use filament admin in fresh new project, or we actully need some data to work on it?

avatar

You can install Filament in a fresh project, yes, but what's the use of it? Filament resources work with existing Laravel models, so if you don't have them, there will be no use from Filament.