Add Custom Virtual Host in laragon

  1. Add a sub folder in laragon root.
  2. Rewrite .conf in D:\laragon\etc\apache2\sites-enabled
    Change DocumentRoot and Directory
  3. Reload Apache

Example:

Reference

  1. https://stackoverflow.com/questions/63318438/how-to-set-custom-virtual-host-name-in-laragon
  2. Tool
    https://github.com/bantya/CmdVirtualHost

phpspreadsheet Allowed memory size of xxxxx bytes exhausted

This error could be found in laravel log

Solution: Change memory limit in PHP

Reference:

  1. https://www.drupal.org/forum/support/post-installation/2013-02-12/solved-fatal-error-allowed-memory-size-of-33554432-bytes

Web Site Icon for mobile shortcut

The image size is key. At least 192×192

Reference:

  1. https://stackoverflow.com/questions/11761864/how-to-define-the-website-screen-shortcut-icon
  2. Example:
    1. https://stage.bunnymenu.com/
    2. https://www.obooko.com/blog-post/add-web-shortcut-icon-to-iphone-or-android-phone

Sort by array values

Reference:

  1. https://stackoverflow.com/questions/8055138/mysql-sort-order-by-array-value