public function handleFileUpload($file)
    {
        // Trigger before save hook
        $this->triggerBeforeSaveHook($file);

        $filePath = $this->getFileUploadPath($file);

        $this->getStorageDisk()->put($filePath, file_get_contents($file), 'public');

        // Trigger after save hook
        $this->triggerAfterSaveHook($file);

        return $filePath;
    }
public function handleFileUpload($file)
    {
        // Trigger before save hook
        $this->triggerBeforeSaveHook($file);

        $filePath = $this->getFileUploadPath($file);

        $this->getStorageDisk()->put($filePath, file_get_contents($file), 'public');

        // Trigger after save hook
        $this->triggerAfterSaveHook($file);

        return $filePath;
    }
public function handleFileUpload ( $ file ) { // Trigger before save hook $ this -> triggerBeforeSaveHook ( $ file ) ; $ filePath = $ this -> getFileUploadPath ( $ file ) ; $ this -> getStorageDisk ( ) -> put ( $ filePath , file_get_contents ( $ file ) , 'public' ) ; // Trigger after save hook $ this -> triggerAfterSaveHook ( $ file ) ; return $ filePath ; }
Process file upload

@param $file
@return string
@throws \Exception
Process file upload