Michal Čabala
Group action (question/help request)
I will explain: i have table of records grouped by relation (materials on pallets). Pallet is stored in some location in shelves in warehouse. So i would like to have actions for each material and also for each pallet in one table.
8 replies
Group action (question/help request)
Yes, but i would like to add these actions to group of records - https://filamentphp.com/docs/3.x/tables/grouping
8 replies
How to Authenticate User based on their Status, and also hide few Resource Pages based on the Role
Also, what User status = approved means? According on what conditions? Do you have more statuses? Some things can be done in easier ways that are in Laravel (and Filament core) like softdeletes etc.
28 replies
How to Authenticate User based on their Status, and also hide few Resource Pages based on the Role
1. For custom login page and behaviour, check this tutorial:
https://laraveldaily.com/post/filament-3-login-with-name-username-or-email
But you need to customize it for your needs.
2. Try looking at the Shield plugin. I think it's very easy to use and it's working very well for me.
28 replies
How do I prevent inactive/suspended users from logging in to dashboard?
I think softdeletes are the same thing like user status, if you know how softdeletes are working. And if you don't need more states. And you also don't need extra coding for that, that behaviour just works out of the box.
21 replies
How do I prevent inactive/suspended users from logging in to dashboard?
Just thinking why three states if you just want to prevent inactive user to login. For that it's easier to implement softdeletes and it works out of the box, no extra coding needed. Yeah, i'm doing it same way, but the more i'm digging deeper to Laravel and Filamenty the more i realize that some things can be done much easier way. And like I've said, it just depends on needs. If you just need to "disable" user, use softdeletes. Or make a Custom login page and credentials and customize it your way.
21 replies
How do I prevent inactive/suspended users from logging in to dashboard?
Also an option, but softdeletes works fine for me and it's also super easy. No need to have extra fields for user state (if you don't need some multiple conditions) and you can easily restore user.
21 replies
How do I prevent inactive/suspended users from logging in to dashboard?
No problem. Just remind me or PM, as i've said to not forget about you.
I've tested it right now...if you want to avoid custom login page and process, just implement softdeletes to your user model, if you are happy with that solution. If you need more states, you need custom login page and process. It just depends on what you need.
21 replies
How do I prevent inactive/suspended users from logging in to dashboard?
As I am total noob, i can't answer for that. But according to docs, you have to make a custom login page and function to customize login process in it. It's not so difficult and it works great for me. I don't have time to test it if it works with softdeletes without having custom login page and process. But recently i've made login with personal number instead of email and also check that user is active or not by softdeletes and it works perfectly
21 replies
How do I prevent inactive/suspended users from logging in to dashboard?
Recently i made this, but right now on smsrtphone, so remind me or PM me, i will share a code for you. Basically, implenent softdeletes to your user model and make custom login page with custom login behaviour/credentials. It works perfectly.
21 replies
Deploy to shared hosting, not loading assets.
So I'm lucky enough...some time ago I was looking for hosting that can handle phpBB or Xenforo well and some guy gave me advice for this hosting. Right now I'm running phpBB there and recently added domain for testing my personal project in Laravel and Filament. It's like shared hosting, but probably looks like VPS as of the features- just take a look at it: https://exon.io/nexthosting (switch to english, the cheaper plan (about 15 EUR/month).
16 replies