Skip to main content

Filament Installation and User Restrictions

Lesson 03/35 4:12
Autoplay

Comments & Discussion

AS
Amandeep Singh ✓ Link copied!

Hi @Povilas,

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

PK
Povilas Korop ✓ Link copied!

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

AS
Amandeep Singh ✓ Link copied!

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?

PK
Povilas Korop ✓ Link copied!

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

IL
Ignazio Lo Iacono ✓ Link copied!

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

PK
Povilas Korop ✓ Link copied!

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

IL
Ignazio Lo Iacono ✓ Link copied!

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 :)

AB
Ashutosh Batra ✓ Link copied!

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

PK
Povilas Korop ✓ Link copied!

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.

AU
amn uteri ✓ Link copied!

I have an old project (laravel 10), made by some intern (MVC) but no views => just apis & frontend is in another framework (hosting 2 domains, one for the backend & one for the frontend app); project doesn't have laravel ressources, can I still use filament for the super admin panel just to view stats/dashboard & manage users & roles (super admin have multiple companies) so maybe could this work with multi-tenancy in filament or just basic filament?

PK
Povilas Korop ✓ Link copied!

It should work, but can't guarantee without looking at the code. I think you can try and see what happens.