You can use useCurrent() & useCurrentOnUpdate() on timestamp fields in your migrations

You can use useCurrent() & useCurrentOnUpdate() on timestamp fields in your migrations

🌶️ #Laravel tip: When using timestamp() columns in Laravel Migrations, append the useCurrent() & useCurrentOnUpdate() to set timestamp columns' default value to CURRENT_TIMESTAMP

#PHP #Developers

We're writing a book, you can get it for free here.