F
Filament15mo ago
Mis Tsu

Overwrite resource file

How to overwrite resource file from vendor folder? Can I do it?
9 Replies
LancelotGamer
LancelotGamer15mo 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
Hugo15mo ago
Which file do you want to overwrite?
Vp
Vp15mo 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 TsuOP15mo 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
Hugo15mo ago
Where did you create this table in your code? Can you show me your code ?
Vp
Vp15mo ago
This is from #shield right?
Mis Tsu
Mis TsuOP15mo ago
yes
Vp
Vp15mo 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 TsuOP15mo ago
It work!! Thank you very much!
Want results from more Discord servers?
Add your server