F
Filament10mo ago
none223

Configure blade files of dashboard and resources.

So i want to configure the dashboard and resources, and i found in internet that you can copy the default view into your app, and set the $view property on the page class to your view. The question is how do i do that? where can i find the default view? where will i paste it after i copied, and set the $view property.
9 Replies
awcodes
awcodes10mo ago
It is highly discouraged to do this unless you are willing to watch new releases to make sure they don’t break in your app and update the overridden views. But the answer is that you publish the views from the package with the vendor:publish artisan command.
none223
none223OP10mo ago
i see, but if i am gonna just stick with the current version, it wont have a problem, right?
awcodes
awcodes10mo ago
Not if you lock it down in composer so it doesn’t update on any composer update commands. I think you’re heading down a slippery slope though. But do what you need to.
none223
none223OP9mo ago
No description
none223
none223OP9mo ago
Hello, so i finally have the courage to do it, but i dont know which to pick. I want to configure the dashboard itself and the resources itself. but when i tried to publish filament-views, it just gave me bunch of actions that filament has. what i want is the real html, css or blade files of dashboard and each resources
awcodes
awcodes9mo ago
It is not recommend to publish the view files because it runs the risk of breaking with future updates. But if you want to it would be the ‘-views’ of which ever package you want to over ride. And not to sound derogatory but if you are questioning this, you might not be ready for the maintenance of it.
none223
none223OP9mo ago
i feel like too, but i just want to try it at least sorry for asking too much, but what would be the full command? like i want to configure the views of dashboard for example the real html, css, js, or blade i mean
awcodes
awcodes9mo ago
Artisan vendor:publish and select filament-panels-views. And don’t get me wrong. I think you can maintain it, but it can easily become a pain in the ass to watch every release to see if it could break your app.
none223
none223OP9mo ago
i did this, but still not the output i desire. what i desire is the html, css, and js that is being used to render the specific resource or dashboard
Want results from more Discord servers?
Add your server