How to open *.docx file with editor of the OS?

  Kiến thức lập trình

On laravel 10 / filament 3 site I create and save *.docx file with “Word2007” format using phpoffice/phpword library under site
storage(I keep path of the generated file). After saving of the file I need to open the file with editor which is used for this type of file
in the OS of the user. I search OS independeble desicion . How can I do it ?

    "php": "^8.2",
    "filament/filament": "^3.2-stable",
    "laravel/framework": "^10.48.14",
    "phpoffice/phpword": "^1.2"

Thanks in advance!

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT