With Bootstrap 4 now in beta, many people are beginning to switch their projects over to V4. Obviously the migration process requires changing existing markup, which you can learn more about in the official guide), but for this guide I'll only be covering how to integrate it in your Laravel Mix build process. Remove the old Bootstrap dependency To remove the old dependency, we just need to run this command in our project directory: npm uninstall bootstrap-sass --save-dev Install the beta dependencies We'll need to install both the Bootstrap 4 beta as well as Popper.js (used by Bootstrap for…

One of the many useful features of Eloquent is the ability to define accessors and mutators. Mutators can help you if there's something you'd like to do with a value (like hashing a password) every time it gets set on your model. Accessors are for doing something every time you retrieve an attribute (like converting markdown to HTML). You can even use an accessor to dynamically create additional properties on your model (like a full name that concatenates first and last names). Those are great features, but we also have attribute casting so we can convert attributes to common data…

If anyone knows the U.S. Women's National Team inside and out, it's Sweden. Facing Pia Sundhage, who left her role as the U.S. head coach shortly after winning gold in the London Olympics, has always made me nervous. My most vivid memory from the group stage of the 2015 World Cup was watching the crossbar bounce up and down after Meghan Klingenberg's headed clearance off the line, a play that saved the US from a loss to Sundhage's Sweden. I loved watching Pia coach the USWNT. She always seemed like she was having fun, had a good relationship…

LIRCbar is a small app that runs in your Mac's menu bar allowing easy access to your infrared remotes through your lirc_web installation. LIRC is a Linux package that allows you to record and transmit infrared signals. Setting up LIRC on a Raspberry Pi is a fun DIY home automation project. Beta This application is still in beta, so please contact me with your suggestions, feedback, and bugs. When I find time I'd like to add the ability to rename remotes and keys or pull the labels from lirc_web's config if possible. Requirements Server running lirc_web Mac…

There is a toxic tradition today of presidential candidates being pressured into releasing their personal medical information. It can only be used as a disgusting tool that moves debate away from anything resembling actual substance. Candidates like John McCain and Bernie Sanders have faced nasty attacks, but anyone being honest will admit both are examples of candidates with a tremendous amount of experience. Our country shouldn't lean on one person so much that an illness or death in the White House would send our country to a grinding halt. We have a system in place to handle the loss of…