Overwrite resource file
How to overwrite resource file from vendor folder? Can I do it?
9 Replies
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
Which file do you want to overwrite?
You can, but it's not recommended. All you have to do is published the vendor file, but again not recommended.
I want to remove "Updated At" column ,to do that I found the resource file is under vendor folder how should I do?
Where did you create this table in your code? Can you show me your code ?
This is from #shield right?
yes
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#shieldpublishIt work!!
Thank you very much!