I am wondering if its possible to link my public path to a folder on the same level as my base_path/the root directory of my Laravel Application?
I am doing so because my current server is a shared server and I have to separate my public folder and store its file into the public_html folder.
I have done the necessary configuration on my index.php to have the site up. But unfortunately my public_path() is /home/vagrant/Code/Website/public_html instead of /home/vagrant/Code/public_html.
But when i call return public_path in my view i am getting home/vagrant/Code/website/public_html instead of home/vagrant/Code/public_html. Can you please advice me?
khaledSMQ's solution worked for me but I also had to move the index.php file up from the /up_one_level/public folder to the /up_one_level folder. Also, had to remove an ill-advised .htaccess from that /up_one_level folder. So index.php should be up a level from /public. Hope this helps because I spent a good week or so trying to find the correct solution. Lord knows Apache is a TERRIBLE program, in my opinion and I will be staying very far away from it in my future endeavors.