public function getImportFilePath($sessionKey = null)
    {
        $file = $this
            ->import_file()
            ->withDeferred($sessionKey)
            ->orderBy('id', 'desc')
            ->first()
        ;

        if (!$file) {
            return null;
        }

        return $file->getLocalPath();
    }
public function getImportFilePath($sessionKey = null)
    {
        $file = $this
            ->import_file()
            ->withDeferred($sessionKey)
            ->orderBy('id', 'desc')
            ->first()
        ;

        if (!$file) {
            return null;
        }

        return $file->getLocalPath();
    }
public function getImportFilePath ( $ sessionKey = null ) { $ file = $ this -> import_file ( ) -> withDeferred ( $ sessionKey ) -> orderBy ( 'id' , 'desc' ) -> first ( ) ; if ( ! $ file ) { return null ; } return $ file -> getLocalPath ( ) ; }
Returns an attached imported file local path, if available.
@return string
Returns an attached imported file local path if available .