Laravel 9.43 Released


December 7th, 2022

Laravel 9.43 Released

The Laravel team released 9.43 this week with the ability to specify columns eagerly with withWhereHas(), the model:show command now lists model policies, a new Stringable method, and more:

Add support for eager-loading specific columns with "withWhereHas"

Diaa Fares contributed eager-loading specific columns while using withWhereHas(). This method now works in the same way as Model::with():


List model policies in the model:show command

Andy Hinkle contributed adding model policies to the output of models in the Artisan model:show command:

model:show policies example

This is helpful to see which policies are attached to a given model.

Stringable whenIsUlid method

Michael Nabil contributed a whenIsUlid() method that will run a given callback when a Stringable instance is a Universally Unique Lexicographically Sortable Identifier (ULID):

str('01GJSNW9MAF792C0XYY8RX6QFT')->whenIsUlid(function () {
// Your code

Release Notes

You can see the complete list of new features and updates below and the diff between 9.42.0 and 9.43.0 on GitHub. The following release notes are directly from the changelog:



  • Add support for eager loading specific columns to withWhereHas (#45168)
  • Add Policies to Model Show Command (#45153)
  • Added Illuminate/Support/Stringable::whenIsUlid() (#45183)


  • Added missing reserved names in GeneratorCommand (#45149)


  • Allow to pass base64 key to env:encrypt command (#45157)
  • Replace model:show searched value with correct FQCN (#45160)

Filed in:

Paul Redmond

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.