1. First, we would like to give appropriate permissions to Files and folders for a laravel project. Stackoverflow Link
2. Allow Apache to handle directives other than /var/www. This setting is found in /etc/apache2/apache2.conf.
3. Add apache user (Mine was www-data) to your user group with this command: sudo adduser www-data $(whoami)
4. You need to restart apache2. Also might need to restart php-fpm. Mine was php8.1-fpm.
5. Create virtual host with roverrwire/virtualhost available on github.