F
Filament16mo ago
JamesA

allow unauthenticated users read only access to resource

I have a couple of resources that I want to allow unauthenticated users to access. How can I define certain pages withing filament to allow guest access?
40 Replies
JamesA
JamesAOP16mo ago
if I cannot do it on a resource level could I do it on a per panel basis and put all my guest views within a specific panel and have a seperate panel for authenticated users?
awcodes
awcodes16mo ago
Filament requires an authenticated user. For guest pages you would just use normal Laravel routing and views.
JamesA
JamesAOP16mo ago
A normal Laravel page is of no help. I need to allow gues access to view an actual filament resouce. So I guess my only option is to not use Filament then and just make eveything custom. Seems like a MASSIVE oversight Since they want to claim to be something more than just an admin panel
awcodes
awcodes16mo ago
It’s trivial to make a view and use forms and tables without a panel. You can even use a lot of the filament blade components to keep a consistent look. They are documented.
JamesA
JamesAOP16mo ago
so I have to rtecreate filament to do what filament won;t allow me to do for no specific reason? got it clearly its still just inteded as an admin panel
awcodes
awcodes16mo ago
There is a specific reason, policies don’t work without an authenticated user. That’s a laravel thing. Not a filament thing.
JamesA
JamesAOP16mo ago
not a whole app framework there are no policies
awcodes
awcodes16mo ago
There are defaults for the policies that protect resources.
JamesA
JamesAOP16mo ago
Ok But that still dosen't mean that FIlament couldn't provide a way to define guest access that just does not apply that policy
JamesA
JamesAOP16mo ago
Also BTW Laravel DOES support guests in policies, and has for awhile: https://laravel.com/docs/5.7/authorization#guest-users
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
awcodes
awcodes16mo ago
Feel free to submit a PR.
JamesA
JamesAOP16mo ago
Because I have time to figure out the structure of a lrage package and PR a basic feature you didn;t already include. No thanks I am just not going to use FIlament problem solved because again you're still obliviously just and admin panel v3 has not lived up to its promises
SOIXT
SOIXT16mo ago
Why are you so hateful? You dont like free software? Go do it all from scratch
JamesA
JamesAOP16mo ago
If I wanted your opinion I'd fucking give it to you. I'm not the one who releases something and misrepresents it to the public.
SOIXT
SOIXT16mo ago
Be useful and submit a PR you are just like a feminist
JamesA
JamesAOP16mo ago
The time it would take to do their job for them, I can just make my app without filament. I think i'll do the latter asshat
SOIXT
SOIXT16mo ago
Making a free software is not a paid job, so its not their job. Why don't you make something free and spend your useless time?
JamesA
JamesAOP16mo ago
Thats what github sponsors is for, so they DO get paid
awcodes
awcodes16mo ago
I don’t get a cent from anything related to Filament.
SOIXT
SOIXT16mo ago
Don't ban me, but we need new world war to clean the world from people like him. Putin aint wrong
awcodes
awcodes16mo ago
They are just frustrated. If they don’t want to use Filament then I wish them well and thanks for giving it a go.
JamesA
JamesAOP16mo ago
Neither do I so why should I take my time to learn the inner workingings of Filament just to submit a PR to make filament do what it should already sdo if it was what you claim it to be
SOIXT
SOIXT16mo ago
Yeah, I used Splade which is also great but I am switching to filament since community is bigger.
awcodes
awcodes16mo ago
Whether Filament should do something you want it to do doesn’t mean it’s something that it should do.
SOIXT
SOIXT16mo ago
While we talk here, could filament be rendered within iconic? @awcodes
JamesA
JamesAOP16mo ago
if you don;t want it to do that then fine but don;t go lying to people telling them its more than just an admin panel when its clearly not by any measurement.
awcodes
awcodes16mo ago
It is more than an admin panel. You can build an entire SaaS with it.
JamesA
JamesAOP16mo ago
after how many PRs?
awcodes
awcodes16mo ago
I’m even replacing Wordpress with it.
SOIXT
SOIXT16mo ago
What do you expect it to run a tesla out of the box?
awcodes
awcodes16mo ago
You can also use the packages independently of each other in any laravel app. So you don’t even have to have an “admin” panel.
SOIXT
SOIXT16mo ago
go do it manually instead of arguing
awcodes
awcodes16mo ago
I think you’re just trying to use the panels package for things it wasn’t designed for.
SOIXT
SOIXT16mo ago
I've read something about not publishing views and doing everything in app part. How can we change structures to some components like sidebar?
awcodes
awcodes16mo ago
You can’t change structure without changing a view. If you’re at that point of customization where you can’t do it with css, then you have to accept the risk of breaking changes in views or ditch the panel and make your own layouts and use the packages stand-alone. There’s a lot of people who don’t use the panels at all. It’s pretty easy to throw a table, form, etc onto a livewire component.
SOIXT
SOIXT16mo ago
I guess thats right, I am new to livewire as well used inertia with splade long time so I thought the package would be active but lately its so limited that you can't even do your custom stuff. Is it possible to add custom livewire components into panel? Would like to convert my inertia component to livewire and add it to panel or even as a plugin for chat?
awcodes
awcodes16mo ago
Yep. Look up custom fields or layout components in the docs. And you don’t have to recompile them because they aren’t Vue. 😜
SOIXT
SOIXT16mo ago
Is that in infolist builder? Docs are little too wow for starting 😄 cant find where i am 😄
awcodes
awcodes16mo ago
Info list would be a custom entry. But basically any you can supply a blade file as a “view” you can have livewire components in that blade file.
Want results from more Discord servers?
Add your server