Could you explain why you want to serve PHP files from the public folder?
Are the PHP files uploaded by the user or user-generated?
Are you attempting to render the PHP file or do you just want to serve the raw data as text?
Laravel's public/.htaccess redirects all PHP file requests to public/index.php by design. The framework is supposed to have a single entry point for all requests.
The files are only used by me. I am uploading them to easily be able to download them using a visual list.
I am attempting to serve the data as text. Tried using file_get_contents() with the given path which returns 404. Maybe it’s better to use another extension