Level 1
Well, that's quite late to answer, I believe.
Anyways, just in case anyone gets this error, you have to write timestamp instead of timestamps.
11 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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 or to participate in this conversation.