ErrorException: Creating default object from empty value

时间:2016-04-25 09:33:19

标签: mysql laravel laravel-4 laravel-5 migration

I cloned a laravel project and ran composer install but when I run php artisan migrate it gives me :

 [ErrorException]                          
 Creating default object from empty value 

what does this exception means ? and how to solve it please ?

1 个答案:

答案 0 :(得分:0)

Massive guess because you haven't given us much to work on, but I would say in one of your migration files, you have something like:

$table->string('le_field')->default();

Which should be instead:

$table->string('le_field')->default('le default value');
相关问题