Great lesson Thanks for responding to my request Periklis
@AngelJayAcademy3 жыл бұрын
@Pkiopes It's a pleasure.
@pkiorpes3 жыл бұрын
Calling the function $this->cleanupOldTmpImages(); as last cal inside public function save() is bad or goog practice?
@AngelJayAcademy3 жыл бұрын
@Pkiorpes It's not good or bad. The BAD, if you have a lot of temp files it can slow the creating of a post, remember not only do the posts use the livewire-temp folder it is the profile images as well. The GOOD it's keeps the temp folder cleaned up, if that is the step you take then create a trait from that method and you can use it in the upload profile component as well. The BEST is to create a CRON job that runs that method every day at a time when you know your application is not being used that much.