Remove storage checks

This commit is contained in:
David Bomba 2022-07-31 22:23:50 +10:00
parent a9b3522081
commit 4de240c3ab

View File

@ -22,9 +22,9 @@ trait Uploadable
{
public function removeLogo($company)
{
if (Storage::exists($company->settings->company_logo)) {
UnlinkFile::dispatchSync(config('filesystems.default'), $company->settings->company_logo);
}
//if (Storage::disk(config('filesystems.default'))->exists($company->settings->company_logo)) {
(new UnlinkFile(config('filesystems.default'), $company->settings->company_logo))->handle();
//}
}
public function uploadLogo($file, $company, $entity)