You can use useCurrent() & useCurrentOnUpdate() on timestamp fields in your migrations
- ·
- Telegram
- ·
- Newsletter
🌶️ #Laravel tip: When using timestamp() columns in Laravel Migrations, append the useCurrent() & useCurrentOnUpdate() to set timestamp columns' default value to CURRENT_TIMESTAMP
#PHP #Developers