Added a useful fix provided by https://laracasts.com/series/build-a-laravel-app-from-scratch/episodes/22#comment-1501605316