Skip to content

Releases: laravel/framework

v5.5.2

05 Sep 20:36
Compare
Choose a tag to compare

Added

  • Added mov extension and MimeType::search() method (#20917)
  • Added support for dont-discover in packages (#20921, 4a6f1f2)
  • Added retrieved model event (#20852, 84291a6)
  • Added HasOneOrMany::setForeignAttributesForCreate() method (#20871)
  • Made Route macroable (#20970)

Changed

  • Load deferred providers before commands (366c50e)
  • Don't pass cache instance to Schedule anymore (#20916, #20933)
  • Simplified mix require (#20929)
  • Return null if resource attribute contains relation with a null value (#20969)

Fixed

  • Prevent ErrorException in Collection::operatorForWhere() method (#20913)
  • Create default console input/output in Application::run() (#20922, 7647399)
  • Ignore abstract classes in Kernel::load() (#20931)
  • Fixed listener-queued-duck.stub filename (#20937)
  • Fixed faking notification sending while using AnonymousNotifiable (#20965)
  • Fixed eachSpread() and mapSpread() with nested collections (#20962)
  • Fixed generating names for classes beginning with slash (#20961)

v5.5.1

03 Sep 16:14
Compare
Choose a tag to compare

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::$collects visibility to public (#20885)

Fixed

  • Fixed choice() on non-tty terminals (#20840)
  • Fixed Macroable calls on Optional (#20845, #20898)
  • Fixed dropAllTables() when using PDO::FETCH_ASSOC mode (#20859)
  • Pass model name to ModelNotFoundException::setModel() (#20896, 891f90e)
  • Fixed Basic authentication (#20905)
  • Fixed DelegatesToResource::offsetExists() (#20887)

Removed

  • Removed redundant methods from MorphOneOrMany (#20837)

v5.5.0

30 Aug 16:05
Compare
Choose a tag to compare

General

  • ⚠️ Require PHP 7+ (06907a0, 39809ce)
  • ⚠️ Removed deprecated ServiceProvider::compile() method (10da428)
  • ⚠️ Removed deprecated Str::quickRandom() method (2ef257a)
  • Removed build scripts (7c16b15)
  • Upgraded to Symfony 3.3 components (4db7031, 67a5367)
  • Throw RuntimeException when app key is missing (#19145, 8adbaa7)

Artisan Console

  • Added interactive prompt to vendor:publish (#18230)
  • Added migrate:fresh command (f6511d4, #20090)
  • Added make:factory command and added --factory to make:model (a6ffd8b, #19985)
  • Added make:rule command (76853fd)
  • ⚠️ Added runningInConsole() method Application contract (#18658)
  • Support default value(s) on command arguments (#18572)
  • Improved CLI detection for phpdbg (#18781)
  • ⚠️ Always return array from RetryCommand::getJobIds() (#19232)
  • Support passing absolute paths to make::listener (#19660)
  • ⚠️ Use handle() method instead of fire() (#19827, #19839, #20024)
  • Try to guess the --create option when generation migrations (#20032)
  • Generate make:policy with real user model namespace (#20047)
  • Added Kernel::load() to auto register a directory of commands (2e7ddca, d607b9c)
  • ⚠️ Removed array type hint from Command::table() (#20120)
  • Support loading multiple paths in Kernel::load() (#20251, #20595)
  • Added CommandStarting and CommandFinished events (#20298)
  • Show error message if a reverted migration is not found (#20499, a895b1e)
  • Set correct namespace in model factories when using the app:name command (#20766)
  • ⚠️ Switched the -f shortcut from --force to --factory on make:model command (#20800)

Assets

  • Added frontend preset commands (463b769, too many follow-up commits)

Authentication

  • ⚠️ Support default user providers and pass user provider to RequestGuard (#18856)
  • Made the user provider parameter on RequestGuard optional (d7f0b26)
  • Use setRememberToken() in ResetsPasswords (#19189)
  • Added a PasswordReset event (#19188)
  • ⚠️ Support multiword models in authorizeResource() (#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)
  • ⚠️ Added abilities() method to Gate contract (#19173)
  • ⚠️ Implement iterable on Gate::check() and Gate::any() (#20084)

Blade Templates

  • Added Blade::if() method (71dfe0f, 2905364, #20025)
  • Added @switch, @case, @break and @default directives (#19758)
  • ⚠️ Prevent Blade from parsing PHP code inside @php blocks (#20065)

Broadcasting

  • ⚠️ Use AccessDeniedHttpException instead if HttpException (#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 DatetimeInterface and DateInterval in cache repository (#20034)
  • Added getStore() method to cache Repository interface (#20338)
  • ⚠️ Made RateLimiter less 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() and unwrap() methods (#20055, #20068)
  • Added keys to partition(), eachSpread() and mapSpread callback (#20783, #20723)

Configuration

  • Added Config::getMany() method (#19770)

Controllers

  • ⚠️ Added ControllerDispatcher (#20031)
  • ⚠️ Removed Controller::missingMethod() (bf5d221)

Database

Read more

v5.4.36

30 Aug 15:36
Compare
Choose a tag to compare

Added

  • Added MP3 to Testing/MimeType::$mimes (#20745)

Changed

  • Mailables that defined a $delay property will honor it (#20717)

Fixed

  • Fixed route URLs building from artisan commands (#20788)

v5.4.35

24 Aug 18:01
Compare
Choose a tag to compare

Fixed

  • Fixed breaking change in FactoryBuilder (#20727)

v5.4.34

24 Aug 18:01
Compare
Choose a tag to compare

Added

  • Added Str::start() and str_start() helper (#20569)
  • Added orDoesntHave() and orWhereDoesntHave() to QueriesRelationships (#20685)
  • Added support for callables in model factory attributes (#20692)

Changed

  • Return the model instance from Model::refresh() (#20657)
  • Use self::$verbs in Router::any() (#20698)

Fixed

  • Fixed duplicate user model import in make:policy (#20645, 48f5f23)
  • Fixed PHP 7.2 incompatibility in Builder::mergeWheres() (#20635)
  • Fixed issue in RateLimiter (#20684)
  • Fixed success message after password reset (#20707)
  • Fail job only if it didn't fail already (#20654)

v5.4.33

15 Aug 03:51
Compare
Choose a tag to compare

Added

  • Show error message if a reverted migration is not found (#20499, a895b1e)

Changed

  • Moved tap() method from Builder to BuildsQueries (#20384)
  • Made Blade or operator case-insensitive (#20425)
  • Support $amount = 0 in Arr::random() (#20439)
  • Reverted doctrine/inflector version change made in v5.4.31 (#20227)

Fixed

  • Fixed bug when using empty values in SQLiteGrammar::compileInsert() (#20424)
  • Fixed $boolean parameter being ignored in Builder::addArrayOfWheres() (#20553)
  • Fixed JoinClause::whereIn() when using a subquery (#20453)
  • Reset day parameter when using Y-m with date_format rule (#20566)

v5.4.32

03 Aug 16:07
Compare
Choose a tag to compare

Added

  • Added FilesystemAdapter::path() method (#20395)

Changed

  • Allow Collection::random() to return 0 items (#20396, #20402)
  • Accept options on FilesystemAdapter::temporaryUrl() (#20394)
  • Sync withoutOverlapping method on Event and CallbackEvent (#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)

v5.4.31

02 Aug 17:37
Compare
Choose a tag to compare

Added

  • Added Blueprint::unsignedDecimal() method (#20243, 3b4483d, 06dcaaa)
  • Added Relation::getMorphedModel() method (#20244)
  • Added Model::isNot() method (#20354)
  • Added FilesystemAdapter::temporaryUrl() method (#20375, 09cfd7f)
  • Added Request::userAgent() method (#20367)

Changed

  • Renamed MakeAuthCommand to AuthMakeCommand (#20216)
  • Don't use asset() helper inside mix() (#20197)
  • Removed array type-hint in Builder::orWhereRaw() signature (#20234)
  • Added empty array default to $attributes on BelongsToMany::create() (#20321)
  • Prepare for PHP 7.2 (#20258, #20330, #20336, #20378)
  • Use unsignedTinyInteger() in jobs.stub (#20382)

Fixed

  • Make sure Model::getDates() returns unique columns (#20193)
  • Fixed pulled doctrine/inflector version (#20227)
  • Fixed issue with chunkById() when orderByRaw() is used (#20236)
  • Terminate user defined database connections after rollback during testing (#20340)

v5.4.30

20 Jul 15:15
Compare
Choose a tag to compare

Fixed

  • Handle a non-existing key in ArrayStore (#20156)
  • Fixed bug @guest and @auth directives (#20166, b164e45)