abkrim
4 years ago
2834
2
Laravel

nullable() > Call to a member function useCurrent() on null

Posted 4 years ago by abkrim

I get error when try a migration on Laravel 5.3 (on 5.2 work this code)

local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function useCurrent() on null in /home/vagrant/setdart/database/migrations/2016_07_02_081018_create_migration_corrections_table.php:26

On code

$table->timestamps('created_at')->useCurrent();

Also try

$table->timestamps('created_at')->nullable(true)->useCurrent();

It's a bug? A mistake?

Please sign in or create an account to participate in this conversation.