$this->dataBase->transactional(function($file) use ($this) { $result = $this->insertFileIntoDb($file) and $this->storeUploadedFile($file); return $result; });
Standard input is empty
$this->dataBase->transactional(function($file) use ($this) { $result = $this->insertFileIntoDb($file) and $this->storeUploadedFile($file); return $result; });