Bashy, thank you very much for your help! This is exactly what I was looking for.
Great, so let me rephrase what you said. All the folders/files should be read-only expect for public folder and app/storage. Public and app/storage will have chmod 777, everything else in the framework is chmod 644, is that correct?
I've been developing locally for a while and now that I'm ready to move to production I realized I have modified the files permissions in several places. Is there a function I can run to make sure my app has the correct file permission? My main concern is security or leaving folders vulnerable and open to the world.
Any suggestions are welcome.