I have been doing some work with Laravel lately and needed to force a site to use https for everything. One of the first problems I encountered was figuring out how to force https in Laravel for linked stylesheets, javascript assets, etc... I found a few different solutions, but none of them solved the issue. I was able to combine a couple of different approaches and found one … [Read more...] about SOLVED: Force Assets to use HTTPS in Laravel
php
Installing LAMP Stack on Windows XP, Vista and 7
If you write PHP and are anything like me, you want to test your code before making it live to the world on your own LAMP stack on windows. I have installed linux on separate computers, installed LAMP stacks on windows, created development environments on my live web servers and yet none of these are all that great to work with. Enter Virtualbox. If you are reading this … [Read more...] about Installing LAMP Stack on Windows XP, Vista and 7
Display Random Testimonials in PHP
Lately I have been working on some new projects. I have a client right now that operates a service business and they would like to display testimonials on their site. For this application, I wrote a custom, simple solution to accomplish this with PHP. Here is a preview of the code: -------------------------------------------- Use a PHP include to use this code on your target … [Read more...] about Display Random Testimonials in PHP