Mobio Technological Solutions Blog

Mobio Solutions

Category Archives: Laravel

Laravel version 5.5.20 Released

  • Laravel v5.5.20 was tagged yesterday with some testing assertions, route updates, and Blueprint time precision. Multiple changes and fixes were also merged, see the full release notes for details.
  • Among the new features, some TestResponse methods were added for convenience around validation and asserting JSON responses:
  • The assertJsonMissingExact() method, related to the assertJsonMissing() method, fails when all of the JSON attributes exist in the response.
  • Release Highlights
  • Added
    • Added TestResponse::assertJsonMissingExact() (#21881)
    • Added assertValidationErrors() and assertJsonCount() to TestResponse (#21917)
    • Added allOnQueue() and allOnConnection() for job chaining (#21765)
    • Support variadic arguments on fluent Route::middleware() (#21930)
    • Added precision to Blueprint::time() (#21936)
    • Added Router::apiResources() method (#21956)
    • Support graceful handling of SIGTERM in queue workers (#21964)
  • Changed
    • Added “kin” as an uncountable word (#21843)
    • Improved geo spatial support (#21919)
    • Include job name in the MaxAttemptsExcededException (#21941, #21943)
    • Support rendering multiple @verbatim and @php blocks (#21900)
    • Moved InteractsWithRedis to Illuminate\Foundation\Testing (#21967)
    • Don’t bind macro when it is not a Closure (#21980)
    • Check for before() method on policies classes (#21989)
    • Detect lost pgbouncer connections (#21988)
  • Fixed
    • Fixed BroadcastController namespace issue (#21844)
    • Fixed eager loading HasManyThrough relations with custom intermediate and local key (#21902)
    • Use table aliases when calling self-referencing HasManyThrough relation (#21883)
    • Fixed Vue component file name in React present (#21945)
    • Reverted changes to BadMethodException in #20196 (#21929)
  • Courtesy: Laravel Official Blog
  • New Route Methods introduced in Laravel 5.5

    Laravel 5.5 shipped a couple of convenient shortcuts to the Laravel Router class that eliminates the need for creating a controller or closure only to return a simple view or redirect. If you missed them in the release notes, let’s look at them briefly, they are sure to simplify your code and remove a couple of files.
  • The Route::view method
  • The Route::view method eliminates the need for routes that only need a view returned. Instead of using a controller or a closure, you can define a URI and a path to a view file:
  • Read More on Laravel official Page