The Laravel team released 8.36 with a custom stub option when creating controllers, a useCurrentOnUpdate method for blueprint datetime columns in MySQL, a dispatch_sync() helper function, and the latest changes in the 8.x branch: Tim Martin contributed support for useCurrentOnUpdate for MySQL DATETIME column types: This allows using DATETIME columns for metadata like created_at and updated_at more effectively. Since TIMESTAMP columns in MySQL suffer from the Year 2038 Problem , using DATETIME columns is preferred in some applications. Here’s an example from the tests: Dries Vints contributed a dispatch_sync() helper function as an alternative to dispatch_now().
Here are a few examples given in the pull request, but generally you’ll not need this functionality in Laravel apps unless you’re building very specific packages (i.e., Livewire) that need this advanced control: Brian Dillingham contributed a --type flag for the make:controller command to define custom stub types for controllers: Which would look for /stubs/controller.custom.stub in the application when creating the file. Custom stubs are helpful if you want more control and less manual editing when creating new controllers in a project.