Overwrite resource file

How to overwrite resource file from vendor folder? Can I do it?
9 Replies
LancelotGamer
LancelotGamer2y ago
Why would you do that ? The vender folder must not be edited If you edit the vender folder, it will not be added to the git history Then when you deploy it will cause issues in your project
Hugo
Hugo2y ago
Which file do you want to overwrite?
Vp
Vp2y ago
You can, but it's not recommended. All you have to do is published the vendor file, but again not recommended.
Mis Tsu
Mis TsuOP2y ago
I want to remove "Updated At" column ,to do that I found the resource file is under vendor folder how should I do?
No description
Hugo
Hugo2y ago
Where did you create this table in your code? Can you show me your code ?
Vp
Vp2y ago
This is from #shield right?
Mis Tsu
Mis TsuOP2y ago
yes
Vp
Vp2y ago
Just run php artisan shield:publish and you'll get resources, you can change whatever you want inside the resource. ref here https://github.com/bezhanSalleh/filament-shield#shieldpublish
Mis Tsu
Mis TsuOP2y ago
It work!! Thank you very much!

Did you find this page helpful?