Category Archives: laravel

Fixing Laravel artisan migration timeout issues

A quick tip if you are getting timeout issues when creating new Laravel migrations:

$ php artisan migrate:make create_users_table --table=users --create
Created Migration: 2013_06_25_100053_create_users_table
Generating optimized class loader

[Symfony\Component\Process\Exception\RuntimeException]
The process timed-out.

Open up the vendor/symfony/process/Symfony/Component/Process/Process.php
file within your Laravel application and change the constructor from:

    public function __construct($commandline, $cwd = null, array $env = null, $stdin = null, $timeout = 60, array $options = array())

to this:

    public function __construct($commandline, $cwd = null, array $env = null, $stdin = null, $timeout = null, array $options = array())

This removes the timeout, and will prevent the error from happening.

Looking for reliable hosting for your Laravel projects? I recommend Clook Internet.

Glen Scott

I’m a freelance software developer with 18 years’ professional experience in web development. I specialise in creating tailor-made, web-based systems that can help your business run like clockwork. I am the Managing Director of Yellow Square Development.

More Posts

Follow Me:
TwitterFacebookLinkedIn