Can I use filament to build sites other than Admin Panels?

I have experience in web development but I’m new to Laravel, and I’m trying to use Filament for the first time. I’d like to know if Filament can be used to create custom forms. The documentation suggests that it can, but I’m having trouble understanding it, likely due to my inexperience with Laravel. What is the best way to start integrating Filament with Laravel? Is Filament only intended for admin panels?
22 Replies
toeknee
toeknee7mo ago
Filament is designed for user/admin panels, SASS products etc. For forms see Leandro's comment
Soundmit
Soundmit7mo ago
impossible to make multilanguage website (in frontend)
toeknee
toeknee7mo ago
What...
Soundmit
Soundmit7mo ago
i've made a very complex app with filament out of nothing now for a simple website, i need the frontend in 2 languages.. and nothing... i have setup my model (page) with translatable title/slug and content i have tried 300 different possible solution but i can't switch one simple page from one language to another (different slug) also, you can't have a page with different language but same slug (/ for the home)
Andrew Wallo
Andrew Wallo7mo ago
You can do it if you have multitenancy or just if you have users. Check out https://github.com/andrewdwallo/erpsaas
GitHub
GitHub - andrewdwallo/erpsaas: A Laravel and Filament-powered accou...
A Laravel and Filament-powered accounting platform, crafting a modern and automated solution for financial management. - andrewdwallo/erpsaas
Andrew Wallo
Andrew Wallo7mo ago
It has multi language support Per tenant
Soundmit
Soundmit7mo ago
@Andrew Wallo it has a frontend? because i had no problem to do it in panels
Andrew Wallo
Andrew Wallo7mo ago
What do you mean it has a frontend?
Soundmit
Soundmit7mo ago
a regular website
Andrew Wallo
Andrew Wallo7mo ago
What’s your definition of a frontend
Soundmit
Soundmit7mo ago
with filament in backend frontend = public website
Andrew Wallo
Andrew Wallo7mo ago
Oh well yeah.. that’s probably why you can’t have multi language easily because the users specified language isn’t tied to them You can try storing it in the browser/session
Soundmit
Soundmit7mo ago
no, the user can choose the language of the content trough a languageswitcher that can set the locale in the session
Andrew Wallo
Andrew Wallo7mo ago
But then again the specified language isn’t stored for a user in the database
Soundmit
Soundmit7mo ago
not interest in user settings frontend is public not for the user
Andrew Wallo
Andrew Wallo7mo ago
Yeah exactly. Then how would you store the users preference for the language? You would need to use Google Translate or something
Soundmit
Soundmit7mo ago
my problem is that i can't switch languages in frontend database are in 2 languages but, for example i'm in the english page ABOUT (slug: about) i want oto switch to italian CHI SIAMO (slug: chisiamo) and this is impossible no...
Andrew Wallo
Andrew Wallo7mo ago
Maybe I’m just confused on what your talking about then
Soundmit
Soundmit7mo ago
my model PAGE is for making PAGES pages are, for example: about, services etc... with spatie translatable, in the backend (form) i'm able to store the content in all the available languages in frontend (public website) i have a menu with link to those pages the problem starts when i want to see the page in the other languages...
awcodes
awcodes7mo ago
This doesn’t have anything to do with filament. Your “frontend” just needs the appropriate middleware to change the app’s local based on either a subdomain or a path segment. Then your switcher just has the appropriate links and the middleware will handle the rest. Spatie’s package will use the appropriate translation on the model attributes based on the app locale.
Soundmit
Soundmit7mo ago
i will try again tomorrow with fresh and rest mind
Want results from more Discord servers?
Add your server