Laravel 10.25, weekly updates, and 🔥 tip

Laravel 10.25

This week brings us to Laravel 10.25. Here are the highlights:

  • Add take($limit) to Stringables in #48467
  • Throttle exceptions in #48391
  • Add convertCase to Stringables in #48492
  • Increase bcrypt rounds to 12 in #48494
  • Set morph type for MorphToMany pivot model in #48432
  • Add firstOrCreate and createOrFirst to the HasManyThrough relation in #48541
  • Handle custom extensions when caching views in #48524

You may review the full branch diff on GitHub for a complete list of changes.

This version bump and update is automated for subscribers to a Shifty Plan. If you don't have one of those, be sure to bump your constraint and run composer update to get the latest features.

Weekly Journal

Last week I was solo parenting from Wednesday to Friday. So I did not get much done. I tinkered a bit with the new Shift CLI. Mostly building the landing page. I also brainstormed on the new side-project.

Several people asked me after last week's newsletter to cross-post updates on the new side-project. Many are not on Twitter or no longer wish to use Twitter. I can't say I blame them of late. So, while this newsletter will remain focused on Laravel and Shift, I will include an occasional highlight from the side-project. Nothing to report yet though.

This week I officially launched the new Shift CLI. I received the first PR and squashed the first bug. I also launched the premium tasks via the private package. Anyone with a Workbench license is grandfathered in, and new users can purchase a license.

For now, I'm going to make sure the launch goes smoothly and stay on top any reported issues. I hope to return to the side-project later this week.

🔥 Tip

I forget you can add scripts to Composer. I normally just type things out on the command line, do a recursive search, or have aliases. But I could see a Composer script being a nice way to share a common set of commands for a project.

Another thing I like about it is the simple JSON configuration right in the composer.json file. For example, to run the new Shift CLI and Pint as composer lint, I would add the following configuration:

{
"scripts": {
"lint": [
"shift-cli",
"pint"
]
}
}