Reaching the Memory Limit Running Laravel Valet

php memory limit ini file

If you ever get this error “PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted ” while running Laravel Valet, check out the path below for Mac users. It seems that this is the specific memory-limit ini file that Valet uses, and you can edit the memory limits there. /usr/local/etc/php/7.0/conf.d/php-memory-limits.ini Note that 7.0 is the … Read more

Npm How to Reinstall Node Modules Packages (package.json)

Sometimes you need to reset node modules package, a common method to clear out any potential errors. Use the following command in the terminal to remove the folder and contents and reinstall packages. You can also do npm update instead of the above, but this will not work if there are no new packages.

How to add composer vendor bin directory to path

Here’s how to add composer vendor bin directory to your path so you can call composer from your terminal. Go to  ~/.bash_profile Add the following to your ~/.bash_profile (Mac OS users) or into your ~/.bashrc (Linux users). You can use any text editor to add this line to the file or create a new “.bash_profile” … Read more

Laravel Nginx and MySQL with Docker

Handy guide from Digital Ocean on how to set up the three containers. The only discrepancy I found was that nano wasn’t included in the containers, so you’ll have to use vim instead. https://www.digitalocean.com/community/tutorials/how-to-set-up-laravel-nginx-and-mysql-with-docker-compose

Learning How to Learn: A Review

About the course Learning How to Learn is a Coursera course taught by Dr. Barbara Oakley from McMaster University and Dr. Terrence Sejnowski of UC San Diego. The course teaches proven learning techniques backed by modern science and can be used to master a variety of subject. This course gives you easy access to the … Read more

Setting Up Virtual Hosts on a Mac

I ran into some trouble running through different tutorials to setup virtual hosts while setting up a local Laravel site. There doesn’t seem to be much consensus on the developers’ preferred local environment. So here’s how to setup virtual hosts on a mac with MAMP. From what I understand this let’s you use a “virtual” … Read more

WordPress Child Theme: Easy Mistakes

How to set up a child theme There are a number of tutorials that go over how to set up a child theme. I should know by this point, but there are a few frequent mistakes that are both crucial to the setup process and that other tutorials fail to make explicit. Short-hand list for … Read more

Interface & Abstract Class Comparison Cheat Sheet

Class Abstract Class Interface Instantiated ✔ X X Extend/Implement Multiple X X ✔ Contract X ✔ ✔ Implementation ✔ ✔ X Single Place Versioning ✔ ✔ X All Methods Public (Access Modifiers) X X ✔ Properties ✔ ✔ X Constants ✔ ✔ ✔ Overridable Constant ✔ ✔ X Type Checked ✔ ✔ ✔ Abstract Class … Read more