Laravel 11.18.0
30 July 2024
Laravel version 11.18.0 is now available (major release).
What's New in Laravel 11.18.0
11.18.0
Bug Fixes and Changes
- Added completeWords flag to limit str method by @itsmewes in #52245
- Fix missing * in phpdoc by @pb30 in #52277
- Fix SQLite schema dumps missing most tables by @bakerkretzmar in #52275
- Access dispatchedBatches via BusFake by @gdebrauwer in #52270
- Adds terminating event by @timacdonald in #52259
- Declare bindings and singletons properties in Service Provider by @Anton5360 in #52256
- Fix explicit route binding for broadcast routes by @ccharz in #52280
- Revert "Allow non-ContextualAttribute attributes to have an after callback" by @taylorotwell in #52281
- Apply relation constraitns on upsert by @iamgergo in #52239
11.17.0
Bug Fixes and Changes
- Fix PHP_CLI_SERVER_WORKERS warning by suppressing it by @pelomedusa in #52094
- Use Command::FAILURE for db:wipe command by @siarheipashkevich in #52152
- Update outdated config files by @TENIOS in #52150
- Fix 'pushProcessor method not found on LoggerInterface' error by @cosmastech in #52117
- Use Command::FAILURE for migrate:fresh command by @siarheipashkevich in #52153
- Improve accuracy of Collection::isEmpty and isNotEmpty assertions by @spawnia in #52184
- Fix return for ApplicationBuilder:: withCommandRouting method by @seriquynh in #52181
- Refactor: Replace get_called_class() with static::class for consistency by @fernandokbs in #52173
- Improve readability of SQLite schema dumps by @bakerkretzmar in #52172
- Allow non-ContextualAttribute attributes to have an after callback by @innocenzi in #52167
- Ignoring column definitions when determining if a blueprint has a create command by @kingsven in #52177
- Add specify exceptions for exceptions handling the vite manifest file by @SamuelWei in #52169
- fix: Model newCollection generics; feat: add HasCollection trait by @calebdw in #52171
- Add whereLike clause to query builder by @einar-hansen in #52147
- Implement HasV7Uuids to use with MariaDB native uuid data type by @Karem-sobhy in #52029
- Rename Model::$collection to $collectionClass by @GromNaN in #52186
- Allow microsecond travel by @timacdonald in #52190
- fix: Model/JsonResource::toJson should not fail with prior json errors by @calebdw in #52188
- Fix SQL Server tests by @hafezdivandari in #52222
- Inspect exception of assertThrows by @gdebrauwer in #52224
- Backport #51615 by @GrahamCampbell in #52215
- fix: Request::json() json errors when decoding empty string by @calebdw in #52204
- Reduce the number of queries with Cache::many and Cache::putMany methods in the database driver by @tonysm in #52209
- Add method QueryExecuted::toRawSql() by @spawnia in #52192
- Support lower version of Carbon by @timacdonald in #52233
- Prevent bug (🐛) emoji on Collection/Dumpable dd method by @jessarcher in #52234
11.16.0
Bug Fixes and Changes
- Fix expected/actual argument order for test assertion by @riesjart in #52084
- Fix Moving Files in Sorted Order in vendor:publish by @lmottasin in #52078
- Fix docblock for \Illuminate\Validation\ClosureValidationRule::message() by @seriquynh in #52077
- Allow passing Enum casts to Rule::enum()->only() and ->except() by @bakerkretzmar in #52073
- Include ConnectionException in ConnectionFailed events by @alexbowers in #52069
- Document returned array shape for sync methods by @devfrey in #52070
- Add ability to configure SQLite busy_timeout, journal_mode, and synchronous pragmas by @bakerkretzmar in #52052
- Allow view content dependent mail callbacks by @MaxTingle in #51990
- Install Laravel Reverb version 1.0 instead of @beta by @lucasRolff in #52096
- fix: dont use web middleware on health endpoint by @joshmanders in #52088
- Add an option to replace configs recursively by @felixbessler in #52087
- Fixes generator tests by @buismaarten in #52118
- Test Improvements by @crynobone in #52122
- Fix SQLite schema dumps containing internal sqlite_* objects by @bakerkretzmar in #52135
- Fix typo in <!DOCTYPE> declaration by @TENIOS in #52134
- fix: pluck generics by @calebdw in #52109
- Include 'success' console component by @lewislarsen in #52112
- Fix dumping migrations table with schema or prefixed name by @hafezdivandari in #52098
- Add assertSentTo shorthand by @jasonmccreary in #52083
- Test Improvements by @crynobone in #52139
- Update the docblock for the constructor of the FileFailedJobProvider class by @kevinb1989 in #52149
- Update the docblock for the explode method of the Stringable class. by @kevinb1989 in #52148
- Refactor PHPStan configurations by @TENIOS in #52145
- Fix docblock for RoutingServiceProvider by @seriquynh in #52144
11.15.0
Bug Fixes and Changes
- Set previous exception on HttpResponseException by @hafezdivandari in #51986
- feat: add generics to Eloquent Builder and Relations by @calebdw in #51851
- add phpstan assertions to Collection isEmpty and isNotEmpty by @johanrosenson in #51998
- Add support for mime types in Resend mail transport by @jayanratna in #52006
- feat: add virtual methods to SoftDeletes trait by @calebdw in #52001
- Fix service container docblock by @seriquynh in #52000
- Fix Http::retry so that throw is respected for call signature Http::retry([1,2], throw: false) by @paulyoungnb in #52002
- Set application_name and character set as PostgreSQL DSN string by @sunaoka in #51985
- Fix GeneratorCommand docblock by @seriquynh in #52014
- Enhance database migrations by @hafezdivandari in #51373
- Run MySQL 9 Database Integration Tests nightly by @Jubeki in #52027
- Enhance doc blocks of the Migrator class by @imanghafoori1 in #52033
- Use nullsafe operator for event dispatcher by @seriquynh in #52024
- Fix PasswordBroker constructor docblock by @seriquynh in #52023
- Add test testMultiplyIsLazy to ensure LazyCollection's multiply method's lazy behaviour by @lmottasin in #52020
- Allow MultipleInstanceManager to have studly creators by @cosmastech in #52030
- Adds $config property to MultipleInstanceManager by @cosmastech in #52028
- fix: findOr and firstOr generics by @calebdw in #52037
- Make Router Tappable by @mabdullahsari in #52051
- feat: improve Factory generics, add generics to HasFactory by @calebdw in #52005
- Ask About View Next To Name For Create Mail Command by @christophrumpel in #52057
- Added @throws docblock for block method for LockTimeoutException by @siarheipashkevich in #52063