• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

Jeff Mould

A Tech Blog by Jeff Mould

  • Home
  • Resources
    • Website Resources
    • How To Use WordPress
  • Jeff Mould
    • About Jeff Mould
    • Jeff Mould Links
    • Disclosure
  • Contact Jeff Mould
You are here: Home / Archives for jeff mould

jeff mould

How to Fix Laravel 5.2 Token Mismatch Errors

June 30, 2016 by Jeff Mould 1 Comment

Pulling your hair out over token mismatch errors in Laravel 5.2? Everything worked fine up until you ran installed Laravel 5.2? Googled it, tried the various fixes scattered across a multitude of sites? Realize you are not the only one with the same problem based on the number of results you find. Don't worry, this isn't another "fix" that worked for one person and doesn't seem to work for anyone else. If you are storing your sessions in your database and look at the sessions table you notice there are multiple sessions being created. Everything else seems to be working for you, but whenever you POST a form a new session is generated by Laravel resulting in a token mismatch error. So how do you fix it?Without going into all the nuts and bolts of why this works, I will just cut to the chase. Resolving Token Mismatch Errors in Laravel 5.2Step 1:Go to your App\routes.php file. Find the grouping of routes that have a "web" middleware. It will look something like … [Read more...] about How to Fix Laravel 5.2 Token Mismatch Errors

Filed Under: Laravel 5 Tagged With: csrf, database, jeff mould, Laravel, laravel 5.2, sessions, token mismatch error

How to Get Sirius XM Deals

May 27, 2016 by Jeff Mould Leave a Comment

My favorite time of year...summer...and time to renew the Sirius XM radio subscription. It boggles my mind how Sirius XM deals work, but for some reason nobody ever wants to give you the straight answer when you talk to them. So here is how I get the best Sirius XM deals.Every June I get my "time to renew" email notice. I don't have auto-renewal, because that only signals to Sirius XM that they can charge your credit card whatever the going rate may be. Bad idea! A quick look online, from the link in the email that says "a special renewal offer" shows a staggering monthly price of almost $18.00. WHAT?!?! I can subscribe to Pandora and plug my phone into my car for half that price. Thanks but no thanks.Calling customer service gets us a little movement on the price. I know they have deals, I know I can prepay for 5 or 6 months and get a much better rate than the website advertises. I ask the rep what Sirius XM deals they have going on and am given one price of $25 plus fees/taxes … [Read more...] about How to Get Sirius XM Deals

Filed Under: General Tagged With: jeff mould, satellite, sirius radio, sirius xm deals, SiriusXM, xm radio

Laravel 5 Error Handling

May 25, 2016 by Jeff Mould Leave a Comment

Laravel 5 error handling does a good job, but there are some areas where it could be beefed up. For example, in the case of handling CSRF token mismatch errors or missing models. Also, while in development for a site, I do miss the old Whoops handler for clean error presentation, instead of having to dig through logs. I understand why they got rid of it though, and appreciate that adding support back is as simple as a few lines of code. Below we are going to go over some basic changes to the Laravel handler to add better support for some Exceptions. I will also go over adding support for the Laravel Whoops error handler if you would like to install it as well.Improving Laravel 5.2 Error HandlingLaravel error handling is handled by the App/Exceptions/Handler.php file. [crayon-5adc4c235f899138104240/]Adding Whoops Error Handling Support to Laravel 5I touched on this briefly in the function above. If you noticed the if...then statement points to a separate function within the … [Read more...] about Laravel 5 Error Handling

Filed Under: Laravel, Laravel 5 Tagged With: error handler, exception, jeff mould, Laravel, laravel5, laravel5.2, mySQL, PHP, whoops

How-To Install Let’s Encrypt SSL Certificate with Laravel

May 14, 2016 by Jeff Mould 8 Comments

Let's Encrypt has made obtaining and installing SSL certificates a no-brainer for websites. However, if you plan to use Let's Encrypt with Laravel running on NGINX there are a couple little modifications you will need to make to the install process. The problem is that with Laravel, your NGINX config probably points to your public directory as the root (for example: /var/www/example.com/public/). Let's Encrypt, however, wants a directory under the root named .well-known and needs to have access to that directory publicly when installing the certificates. If you fail to account for this you will get "client lacks sufficient privileges" errors when attempting to obtain a certificate.Below is a step-by-step guide for installing a Let's Encrypt SSL certificate with Laravel running on NGINX. For this post I am going to assume that you are familiar with installing NGINX and Laravel. Note also that this install is done on Ubuntu 14.04 and assumes you have access to a sudo user.Installing … [Read more...] about How-To Install Let’s Encrypt SSL Certificate with Laravel

Filed Under: Laravel, Nginx Tagged With: certificate, http, https, jeff mould, Laravel, laravel5, letsencrypt, Nginx, ssl

Bootstrap 4 Mobile Menu – Collapsible Nav

April 3, 2016 by Jeff Mould Leave a Comment

This weekend I started experimenting with Bootstrap 4 which is in its Alpha 2 release. While I like what I saw, one lagging feature stuck out to me. Although it works to some extent there are few key CSS features missing to make the Bootstrap 4 navigation collapse like it did in Bootstrap 3. If you simply use the examples provided in the documentation, you will notice that the menu is far from responsive when collapsed on mobile devices.Luckily there are a few simple fixes we can do to make things right so that our Bootstrap 4 mobile menu (collapsible navigation) is the same functionality as the navbar collapse in Bootstrap 3. For this tutorial I am going to use the Dashboard example from the documentation. You can find the Dashboard example here: http://v4-alpha.getbootstrap.com/examples/dashboard/Bootstrap 4 Mobile MenuFirst things first, let's make some small edits to the menu:[crayon-5adc4c2360dbe394268722/]You will notice a few things:For the button, we added a "pull-xs-right" … [Read more...] about Bootstrap 4 Mobile Menu – Collapsible Nav

Filed Under: Bootstrap 4 Tagged With: bootstrap, bootstrap 4, bootstrap4, collapsible, dropdown, jeff mould, media query, menu, mobile, nav, navigation, twitter

How to Get Followers on Twitter

March 31, 2016 by Jeff Mould Leave a Comment

Clients often ask me for the advice on getting started with Twitter and, more importantly, how to get followers on Twitter. Unfortunately, unless you are a celebrity, a Fortune 500 CEO, or major brand, growing you Twitter following is going to be a relentless process and is not going to happen overnight. Once you get the hang of Twitter, and all the little Twitter tricks (i.e. @replies, # hashtags, DM, etc..), it can be a powerful tool for not only communicating with others, but generating leads, identifying job opportunities, and even landing jobs. Once you create a Twitter account though, the next question you will probably ask yourself is how to get followers on Twitter. I am assuming that you want to have a large number of followers reading and interacting with your content. If you don't, and want to keep a small group of people that you interact with, well there is nothing wrong with that approach either. Either way, you will probably wonder what the best way to build your … [Read more...] about How to Get Followers on Twitter

Filed Under: Social Media, Twitter Tagged With: buffer, crowdfire, followers, hootsuite, jeff mould, justunfollow, seo, social media, twitter

Site Feedback Responses

March 25, 2016 by Jeff Mould Leave a Comment

Tonight I was doing some maintenance on the blog here and came across a spam folder that contained a significant amount of contact form "spam". Unfortunately, the majority of the messages were not spam and were in fact contact requests from you all. Over the next few days I will try to follow-up with everyone, but I wanted to apologize for the error. I fixed the issue now so response times should be much better. So if you contacted me using the contact form, know that I will be following up with you in the week. … [Read more...] about Site Feedback Responses

Filed Under: General Tagged With: jeff mould

Exclude Subdirectory from Routing in Laravel 5

February 21, 2016 by Jeff Mould 4 Comments

In this article I am going to explain how to exclude a subdirectory from routing in Laravel 5. Let's say, for example, you have a Laravel 5 application installed at http://www.example.com and you wish to install a WordPress blog in the subdirectory http://www.example.com/blog. Unfortunately it is not as simple as just creating subdirectory under Laravel 5 and assuming it will all work properly. You will need to make a few edits to you NGINX configuration files (Please note that this article assumes you are running NGINX on your server. This can still be done under Apache, you will just have to convert the rewrites to Apache.). Although my focus in this how-to will be on WordPress, the same steps could be taken to install any application (i.e. a forum) to run in a subdirectory of a Laravel 5 application. It is important to note that WordPress may appear to function properly after a base install, if you enable permalinks on your WordPress install you will begin to see issues with … [Read more...] about Exclude Subdirectory from Routing in Laravel 5

Filed Under: Laravel, Laravel 5, Nginx Tagged With: jeff mould, Laravel, laravel5, Nginx, nginx.conf, permalinks, routes, routing, WordPress, wp

  • Page 1
  • Page 2
  • Page 3
  • …
  • Page 8
  • Next Page »

Primary Sidebar

Connect With Me

  • Facebook
  • Github
  • Google+
  • Instagram
  • Linkedin
  • Pinterest
  • Tumblr
  • Twitter
  • YouTube

Top Posts & Pages

  • The mixed up pricing of SiriusXM and SiriusXM Discounts
  • How-To Install Let's Encrypt SSL Certificate with Laravel
  • Bootstrap 4 Mobile Menu - Collapsible Nav
  • Laravel 5.2 - Forcing HTTPS Routes when using SSL
  • Responsive Multi level Drop Down Menu Bootstrap 3

Copyright © 2016 - Jeff Mould - All Rights Reserved