Releases: laravel/framework
Releases · laravel/framework
v5.5.4
Added
- Added
Blueprint::spatialIndex()method (#21070) - Added support for SQL Server's
TransactionIsolationDSN key (#21069) - Added
ManagesFrequencies::everyFifteenMinutes()method (#21092) - Added
Mailable::hasReplyTo()method (#21093) - Added
MailMessage::template()method (#21154) - Added support for Rackspace to
Storage::url()(#21157) - Added support to use sub-queries as a where condition on a join clause (#21008)
Changed
- Return
nullfromRoute::getAction()if$keyis not found (#21083) - Restore non-static signature of
Router::prepareResponse()(#21114, e1a1265) - Removed
Modeltype hint fromModel::isNot()(4d8f0a1) - Prefer
JsonableoverArrayableinJsonResponse::setData()(#21136) - Reset
ccandbccinMailer::setGlobalTo()(#21137) - Avoid trace
argsin JSON exceptions (#21149)
Fixed
- Fixed
@jsondirective parameter logic (2a25ee7) - Fixed a problem with
withoutExceptionHandling()when called more than once (#21086) - Added a
compileForeign()method toPostgresGrammar(#21038) - Reset the index after a
MissingValuewhile resolving resource (#21127) - Fixed
getQualifiedParentKey()onBelongsToManyrelationships (#21128) - Fixed parameters on
Route::view()when usingwhere()(#21113) - Show real directory name in the exception message thrown by
PackageManifest(#21099) - Fixed undefined offset error when refreshing a database collection (#21159)
v5.5.3
Added
- Added
$actionparameter toRoute::getAction()for simpler access (#20975) - Added
@jsonblade directive (#21004) - Added
rescue()helper (#21010, 74ecb34, c4d1c47) - Support commas in
InandNotInparameters (#21012, 3c3c5e4) - Added
RedisManager::connections()method (#21014, 1deaaa9) - Added exception class to JSON exceptions (#21043)
- Added
Gate::policies()method (#21036) - Added geo spatial blueprint methods (#21056)
Changed
- Fixed migrations not being run in batch order (#20986)
- Flush application resources on teardown (#21022)
- Catch errors while building exception context (#21047)
- Return
$thisfromValidator::setCustomMessages()(#21046)
Fixed
- Make
Request::validate()return the value of parent key (#20974) - Fixed date comparison validators failing when a format is specified (#20940)
- Fixed login throttling failing when
decayMinutesis more than1(#20997) - Only use reflection on classes in
Kernel::load()(#20998) - Specify lower case
column_nameinMySqlGrammar::compileColumnListing()(#21037) - Fixed eager loading problem with
BelongsToMany(#21044)
Removed
v5.5.2
Added
- Added
movextension andMimeType::search()method (#20917) - Added support for
dont-discoverin packages (#20921, 4a6f1f2) - Added
retrievedmodel event (#20852, 84291a6) - Added
HasOneOrMany::setForeignAttributesForCreate()method (#20871) - Made
Routemacroable (#20970)
Changed
- Load deferred providers before commands (366c50e)
- Don't pass cache instance to Schedule anymore (#20916, #20933)
- Simplified
mixrequire (#20929) - Return
nullif resource attribute contains relation with a null value (#20969)
Fixed
- Prevent
ErrorExceptioninCollection::operatorForWhere()method (#20913) - Create default console input/output in
Application::run()(#20922, 7647399) - Ignore abstract classes in
Kernel::load()(#20931) - Fixed
listener-queued-duck.stubfilename (#20937) - Fixed faking notification sending while using AnonymousNotifiable (#20965)
- Fixed
eachSpread()andmapSpread()with nested collections (#20962) - Fixed generating names for classes beginning with slash (#20961)
v5.5.1
Added
- Added getter methods on
MimeType(#20826)
Changed
- Moved console commands auto discovery to
Kernel::bootstrap()(#20863) - Use classes instead of helper functions (#20879, #20880)
- Changed
Resource::$collectsvisibility topublic(#20885)
Fixed
- Fixed
choice()on non-tty terminals (#20840) - Fixed Macroable calls on
Optional(#20845, #20898) - Fixed
dropAllTables()when usingPDO::FETCH_ASSOCmode (#20859) - Pass model name to
ModelNotFoundException::setModel()(#20896, 891f90e) - Fixed
Basicauthentication (#20905) - Fixed
DelegatesToResource::offsetExists()(#20887)
Removed
- Removed redundant methods from
MorphOneOrMany(#20837)
v5.5.0
General
⚠️ Require PHP 7+ (06907a0, 39809ce)⚠️ Removed deprecatedServiceProvider::compile()method (10da428)⚠️ Removed deprecatedStr::quickRandom()method (2ef257a)- Removed
buildscripts (7c16b15) - Upgraded to Symfony 3.3 components (4db7031, 67a5367)
- Throw
RuntimeExceptionwhen app key is missing (#19145, 8adbaa7)
Artisan Console
- Added interactive prompt to
vendor:publish(#18230) - Added
migrate:freshcommand (f6511d4, #20090) - Added
make:factorycommand and added--factorytomake:model(a6ffd8b, #19985) - Added
make:rulecommand (76853fd) ⚠️ AddedrunningInConsole()methodApplicationcontract (#18658)- Support default value(s) on command arguments (#18572)
- Improved CLI detection for phpdbg (#18781)
⚠️ Always return array fromRetryCommand::getJobIds()(#19232)- Support passing absolute paths to
make::listener(#19660) ⚠️ Usehandle()method instead offire()(#19827, #19839, #20024)- Try to guess the
--createoption when generation migrations (#20032) - Generate
make:policywith real user model namespace (#20047) - Added
Kernel::load()to auto register a directory of commands (2e7ddca, d607b9c) ⚠️ Removedarraytype hint fromCommand::table()(#20120)- Support loading multiple paths in
Kernel::load()(#20251, #20595) - Added
CommandStartingandCommandFinishedevents (#20298) - Show error message if a reverted migration is not found (#20499, a895b1e)
- Set correct namespace in model factories when using the
app:namecommand (#20766) ⚠️ Switched the-fshortcut from--forceto--factoryonmake:modelcommand (#20800)
Assets
- Added frontend preset commands (463b769, too many follow-up commits)
Authentication
⚠️ Support default user providers and pass user provider toRequestGuard(#18856)- Made the user provider parameter on
RequestGuardoptional (d7f0b26) - Use
setRememberToken()inResetsPasswords(#19189) - Added a
PasswordResetevent (#19188) ⚠️ Support multiword models inauthorizeResource()(#19821)- Added support for no user provider in
CreatesUserProviders(4feb847)
Authorization
- Support multiple values in
Gate::has()(#18758) ⚠️ Prevent policies from being too greedy (#19120)⚠️ Addedabilities()method toGatecontract (#19173)⚠️ ImplementiterableonGate::check()andGate::any()(#20084)
Blade Templates
- Added
Blade::if()method (71dfe0f, 2905364, #20025) - Added
@switch,@case,@breakand@defaultdirectives (#19758) ⚠️ Prevent Blade from parsing PHP code inside@phpblocks (#20065)
Broadcasting
⚠️ UseAccessDeniedHttpExceptioninstead ifHttpException(#19611)⚠️ Upgraded to Pusher SDK v3 (#20016)
Cache
⚠️ PSR-16 compliance (#20194)- Don't encrypt database cache values (f0c72ec)
- Added support cache locks (4e6b2e4, 045e6f2, #19669)
- Accept
DatetimeInterfaceandDateIntervalin cache repository (#20034) - Added
getStore()method to cacheRepositoryinterface (#20338) ⚠️ MadeRateLimiterless aggressive (#20759)
Collections
- Support multiple values in
Collection::has()(#18758) - Added
Collection::mapInto()method (2642ac7) - Added
Collection::dd()method (f5fafad) - Added
Collection::dump()method (#19755) - Added
wrap()andunwrap()methods (#20055, #20068) - Added keys to
partition(),eachSpread()andmapSpreadcallback (#20783, #20723)
Configuration
- Added
Config::getMany()method (#19770)
Controllers
Database
⚠️ AddeddropAllTables()to schema builder (#18484, d910bc8, #19644, #19645, #20239, #20536)- Added precision to
dateTimeandtimestampcolumn types (#18847, f85f6db, #18962, #20464) - Pass page number to
chunk()callback (#19316) - Improve memory usage in
chunk()andchunkById()(#19345, #19369, #19368) - Fixed
compileColumnListing()when using PostgreSQL with multiple schemas (#19553) - Allow the seeder to call multiple commands at once (#19912)
- Added pgpool message to
DetectsLostConnections(#20418) - Prevent race conditions on replicated databases (#20445, [0ec1522](https://github.com/lar...
v5.4.36
v5.4.35
v5.4.34
v5.4.33
v5.4.32
Added
- Added
FilesystemAdapter::path()method (#20395)
Changed
- Allow
Collection::random()to return0items (#20396, #20402) - Accept options on
FilesystemAdapter::temporaryUrl()(#20394) - Sync
withoutOverlappingmethod onEventandCallbackEvent(#20389) - Prevent PHP file uploads by default unless explicitly allowed (#20392, #20400)
- Allow other filesystem adapter to implement
temporaryUrl()(#20398)
Fixed
- Reverted breaking change on
BelongsToMany::create()(#20407)