Can't use put_layout with liveviews on router?

The live layout should be configured when you do use Phoenix.LiveView, layout: {MyCompany.MdbAdminView, :live}, not in the router.

2 Likes