Best Practices for Websites with FilamentPHP
Now that I understand how to use FilamentPHP for creating apps and backends, I need to create the frontend. I would use Filament as if it were a CMS. The typical website has static content pages, a blog or news section, plus some custom content. Developing this part shouldn't be a problem.
As for the frontend, I would use the TALL stack, and this shouldn't be an issue either.
However, I'm wondering how to implement the following:
Content visible to everyone and restricted content (should I create a panel for users?)
Menus: how do you manage menus that have links to pages which can be created by users?
I've never done frontend with Laravel, but it seems that working with routes and views is sufficient.
Can you give me some advice?
8 Replies
just use TALL for the frontend
you can use laravel with blade or with livewire to create the controllers (posts,pages etc)
you can check #lara-zeus-sky and get some ideas
you need to install sky on top of a clean laravel installation
or on top of a laravel+filament?
on top of filament
its a filament plugin π
I'm using ryangjchandler/filament-navigation for navigation
how do you manage the frontend menu?
i saw in the demo that you have a builder for the menu
using something similar to what Tally mentioned
#navigation
its actually the same base code with small improvements
i would recommend learning the basics first of laravel itself. question like
Content visible to everyone and restricted content
makes an impression that you really lack the basicsThank you. Yes, it's not an issue with Spatie permissions or Shield on the filament side. I believe these concepts are also applicable to the frontend