First, make sure that you are allowing network access to MySQL in MAMP Then, try adding the following key-value pair to the MySQL array in config/database.php. Your MySQL array should now look like this: You should now be able to run php artisan migrate with no problems!
Month: October 2018
How to Use the Photoshop Magic Wand
The magic wand allows you to easily and quickly cut an image from another image or to extract a part of an image into its own layer. Start by opening up your image in Photoshop. Then, hover over the magic wand tool in the left sidebar. Then, click on the image with the magic wand…
Add Call to Action Arrows on a Button
We love drawing our users’ attention to important elements on our pages. There are numerous ways of doing this: adding a button, increasing the font size or font weight (ie bold), adjusting the font color, adding a background color, etc. We’re going to focus specifically on buttons on this post. Sometimes adding a button isn’t…
Replace Filenames in Directory with Bash Script
The following bash script converts all filenames within the /path/to/file/ directory that contain spaces to contain hyphens instead. For example, Screen Shot 2018 09 25.png becomes Screen-Shot-2018-09-25.png after running this script. for f in /path/to/file/*; do mv “$f” $(echo “$f” | tr ‘ ‘ ‘-‘) ; done In order to run this bash script, save…
Increase the mysql database upload size in phpmyadmin
When using MAMP as a local development server for your WordPress website, sometimes you’ll get a little error from phpmyadmin telling you the file size is too large. We’ll show you real quick how to increase the file size limits.
Setting up an existing WordPress site on your local computer
In this video we’ll walk you through setting up an existing WordPress site on your local computer. It can sometimes be a pain in the butt but it’s really simple once you know what to look out for.
Using browser sync with WordPress
Speed up your WordPress development using browser-sync. We’ll walk you through setting up browser-sync on your local computer.
Passing variables to template parts in WordPress
How to pass variables to template parts when building a WordPress theme. I wish I knew how easy it was to let a variable to hitch a ride on the query using set_query_var().
Link similar posts using the_posts_navigation() function
A quick tutorial on using the_post_navigation() function in WordPress to navigate between posts with the same tags.