•    Computer Vision Syndrome 

    In no point in human history have people been staring at bright screens just a few feet from their face like they are today. Computer vision syndrome or CVS (not to be confused with Concurrent Versions System) is one side effect to this, and it’s affecting millions of people.

    The National Institute of Occupational Safety and Health reports computer vision syndrome affects about 90% of the people who spend three hours or more a day at a computer, which means almost everyone in our industry is susceptible.

    In another study published by Medical Practice and Reviews reports that CVS is a vision disorder that has been described as the number one occupational hazard of the 21st century as the human eye finds today’s computerised gadgets difficult to cope with.

    Here is how Wikipedia defines the syndrome:

    Computer vision syndrome (CVS) is a condition resulting from focusing the eyes on a computer or other display device for protracted, uninterrupted periods of time. Some symptoms of CVS include headaches, blurred vision, neck pain, redness in the eyes, fatigue, eye strain, dry eyes, irritated eyes, double vision, vertigo/dizziness, polyopia, and difficulty refocusing the eyes. These symptoms can be further aggravated by improper lighting conditions (i.e. glare or bright overhead lighting) or air moving past the eyes (e.g. overhead vents, direct air from a fan).

    A few weeks ago I had my annual eye doctor visit, and I was diagnosed. The doctor said my case was not severe; however, I still needed to take precautions and to start retraining my eyes.

    As you sit in front of the screen, your eyes dry out, and you stop blinking. Over time this leads to damage of the eye muscle that is used to focus on far away objects and damage to the tear ducts.

    He recommended I use a hot compress at least once a week for 10 minutes and to look away from the screen in a method called the 20-20-20-20 rule. Every 20 minutes take 20 seconds to look at an object at least 20 feet away and blink 20 times.

    It sounds easy, and it is, but 20 minutes go by in a flash when you are deep in thought or trying to fix that pesky bug. After the first day I realized I couldn’t do this on my own and here is a list of apps that will help you take breaks.

    Apps for Computer Vision Syndrome

    Breaktime (Mac and iOS)
    BreakTime is a simple utility that’s designed to help you remember to take breaks away from your computer. It never forgets a break, running in your dock or menu bar (or even in the background).

    Eye Care (Mac)
    Eye Care regularly reminds you to take breaks, shows you simple eye exercises and prevents you from using the computer at break times.

    Pomodoro Time (Mac)
    Pomodoro Time is a powerful personal productivity tool incorporating the principles of the Pomodoro Technique. Create tasks, configure breaks and track your progress throughout the day, week or custom period.

    EyeLeo (Windows)
    EyeLeo is a handy PC application that regularly reminds you to take short breaks for your eyes.

    Eye Pro (Windows)
    EyePro is a handy PC application that regularly reminds you to take “Short Breaks for your Eyes” with many exciting, customizable and Innovative features. It is an innovative tool done under the guidance of eminent Eye Doctors

    These apps will help you take breaks because most completely take over the screen by overlaying with a dark overlay and prevent you from cancelling out.

    Of course, these are not the only ways to deal with CVS, and if you have the will power, you can do it yourself or find other ways to distract yourself. For example here are some tips from others.

    “My number one advice is to leave your television on. Crazy right? Eating, taking a break, and looking away from your monitor all take a backseat to the workflow you’re engrossed in. So what I’m about to say seems very counterproductive. Except it’s not. If you are sitting in front of your computer developing away and you have a television in your office, turn it on! The reason why I say this is because it’s obviously a distraction. A very good distraction. It actually forces you to look away from your computer monitor far more often than every 20 minutes. ” – Mike Garrett from TechU4ria

    “I use the Windows app Eye Pro to encourage me to blink more. Because I commute to work every day and spend over 2 hours on public transport, I also tend to watch a lot of videos and read a lot of articles on my tablet, I also use Twilight which helps to reduce the blue light emission of my device so I can read more comfortably.” – Max Robinson, at AIMS Web Media

    CVS can affect anyone at any age, even kids that are getting to much screen time, and I know everyone reading this spends way too much time on the screen, so it’s imperative that we take care of our eyes and consider the consequences of not taking enough breaks.

  •    Spark v2.0.8 is now released 

    Laravel Spark v2.0.8 is now released and includes two new features to make managing teams even better.

    The first feature is support for renaming “Teams”.

    The second new feature is you can now require the credit card up front on team plans.

    To get the latest version visit the official Spark site or run composer update.

  •    Troubleshooting Laravel Valet on macOS Sierra 

    macOS Sierra was released just a few days ago and everybody is starting to upgrade. Some users of Laravel Valet have reported some problems and Adam Wathan has put together a list of common problems and troubleshooting tips to help resolve issues he’s been seeing.

    With his permission to post here is a list of things to look for:

    All I see is “It works!”

    Apache is running on port 80 and interfering with Valet.

    1. Stop Apache: sudo /usr/sbin/apachectl stop
    2. Restart Valet: valet restart

    Valet randomly dies

    You are probably still on Valet <= 1.1.19, it’s recommended to pin to ^1.1.22.

    First, edit ~/.composer/composer.json to point to ^1.1.22 like this:

    - "laravel/valet": "^1.1.19",
    + "laravel/valet": "^1.1.22",

    Next, run composer global update and then restart Valet with it’s valet restart command.

    Every time I refresh I see a totally random file!

    You are running Caddy 0.9.2, which has a known bug related to fastcgi connections.

    Edit your ~/.composer/composer.json to point to ^1.1.22 like this:

    - "laravel/valet": "^1.1.19",
    + "laravel/valet": "^1.1.22",

    Next, run composer global update, ensure you are now running Caddy 0.9.1 by running ~/.composer/vendor/laravel/valet/bin/caddy -version and finally restart Valet valet restart

    I’m getting a 502 Bad Gateway error.

    Usually, this means something is messed up with PHP FPM. The first step is to confirm that FPM is not running:

    ps aux | grep fpm

    You should see at least two processes there if PHP FPM is running (one is grep, ignore that one.) Chances are PHP FPM is not running.

    Next, check the PHP FPM error log to find out why it’s not running:

    cat /usr/local/opt/php70/var/log/php-fpm.log

    Try to resolve any errors you see. Here’s a few common ones:

    • /var/run/valet/fpm.socket does not exist
    • Failed to open configuration file /usr/local/etc/php/7.0/php-fpm.conf

    Problem: /var/run/valet/fpm.socket does not exist!

    If you see an error similar to:

    Unable to bind listening socket for address ‘/var/run/valet/fpm.socket’: No such file or directory

    in the file /usr/local/opt/php70/var/log/php-fpm.log, you were probably running dev-master and have now switched back to tagged releases.

    Valet 1.1.22 attempts to automate fixing this issue by explicitly configuring where PHP FPM should listen.

    First make sure ~/.composer/composer.json points to ^1.1.22:

    - "laravel/valet": "^1.1.19",
    + "laravel/valet": "^1.1.22",

    Then run composer global update and finally valet install.

    Problem: php-fpm.conf is missing!

    Something went wrong when installing PHP through Homebrew. This seems to happen on fresh non-upgrade installations of macOS Sierra.

    1. Uninstall PHP 7: brew uninstall php70
    2. Reinstall PHP 7 from source: brew install php70 --build-from-source
    3. Re-run valet install

    Where to Look for Valet Errors?

    If you are still running into problems, here’s a list of log files to check:

    Caddy start log:


    PHP FPM error log:


    Caddy error log:


    Hopefully with this guide you will be able to pinpoint any errors you have and can fix them through either Brew or Composer.

  •    The error management app Honey Badger now supports PHP 

    Honey Badger, the error management and exception notifier app, has announced an official PHP library for integration with their service.

    The official client is available on GitHub and it supports PHP > 5.5. The documentation includes instructions for hooking into Laravel, but it’s for version 4.2. For Laravel 5.3 you will need to modify the app/Exceptions/Handler.php file and call the notify method from the report method:

    use Honeybadger\Honeybadger;
    public function report(Exception $e)

    Honey Badger is a commercial service and they offer a free plan for non-commercial open-source projects.

  •    Podcast: Laravel 5.3.8, Spark 2, Lumen 5.3 and more! 

    In this week's episode, we discuss the new Laravel 5.3.8, briefly cover Spark 2 & Lumen 5.3, and talk a lot about our progression of code editors.

    Show Links

    Episode Sponsors



  Solution / 2014年11月29日 23:46


  DB / 2014年11月03日 16:31


  Paginator / 2014年09月27日 22:09


  DB / 2014年09月27日 22:09


  DB / 2014年09月27日 22:09

   Bladeで @while を使用する

  Blade / 2014年09月27日 22:09


  DB / 2014年09月10日 10:56


  Core Extension / 2014年09月10日 10:56


  Testing / 2014年09月09日 00:49


  Testing / 2014年09月09日 00:49


  Service Provider / 2014年09月09日 00:49

   LaravelプロジェクトでTravis CIを使った継続的インテグレーション

  Solution / 2014年09月09日 00:49


  Route / 2014年09月09日 00:49


  Middleware / 2014年09月09日 00:49


  Middleware / 2014年09月09日 00:49


  Lang / 2014年09月09日 00:49


  Lang / 2014年09月09日 00:49


  Lang / 2014年09月09日 00:49


  Lang / 2014年09月09日 00:49


  Lang / 2014年09月09日 00:49


  Lang / 2014年09月09日 00:49


  Installation / 2014年09月09日 00:49


  Installation / 2014年09月09日 00:49


  Installation / 2014年09月09日 00:49


  Installation / 2014年09月09日 00:49

このサイトはLaravel Recipesのレシピを日本語訳にしたものと、

View all Packages for your Laravel projects