Jump24 - Laravel Developers that Click into Place. Never outsourced. Never offshored. Always exceptional.

Laravel 7.0.8 Released

Published on by

Laravel 7.0.8 Released image

Never Miss a Laravel Release 🚀

Sign up and get an email with each new Laravel release

A few patch releases have been tagged since the release of Laravel 7 last week. Patch fixes are quite common at the beginning of a significant release as users start to upgrade and report issues.

The latest release is Laravel 7.0.8, which includes a new Mailable::when() method to conditionally run some code. Here’s the example from the pull request, which would call the closure when the first argument is true:

return $this->from('info@example.com')
->when($cv, function ($message) use ($cv) {
$message->attach($cv->getRealPath(), [
'as' => $cv->getClientOriginalName(),
'mime' => $cv->getClientMimeType(),
]);
})
->subject('Example subject')
->view('mail.example');

Laravel 7.0.6 added a queue suffix to the SQS driver configuration:

'suffix' => env('SQS_SUFFIX'),

Other than that, the other fixes are for things like method signatures and user-reported issues. I suggest 7.x users update to the latest to get all the latest improvements.

You can see the full list of new features and updates below and the whole diff between 7.0.0 and 7.0.8 on GitHub. The full release notes for Laravel 7.0.1 through 7.0.8 are available in the latest v7 changelog.

v7.0.8

Added

  • Added Illuminate\Mail\Mailable::when() method (#31828)
  • Allowed dynamically adding of routes during caching (#31829)

Fixed

  • Match Symfony’s Command::setHidden declaration (#31840)

Changed

  • Update the encryption algorithm to provide deterministic encryption sizes (#31721)

v7.0.7

Fixed

  • Fixed type hint for Request::get() method (#31826)
  • Add missing public methods to Illuminate\Routing\RouteCollectionInterface (e4f477c)

v7.0.6

Added

  • Added queue suffix for SQS driver (#31784)

Fixed

  • Fixed model binding when route cached (af80685)
  • Fixed incompatible Factory contract for MailFacade (#31809)

Changed

  • Fixed typehints in Illuminate\Foundation\Application::handle() (#31806)

v7.0.5

Fixed

  • Fixed Illuminate\Http\Client\PendingRequest::withCookies() method (36d783c)
  • Catch Symfony MethodNotAllowedException exception in CompiledRouteCollection::match() method (#31762)
  • Fixed a bug with slash prefix in the route (#31760)
  • Fixed root URI not showing in the route:list (#31771)
  • Fixed model restoring right after soft deleting it (#31719)

Changed

  • Throw exception for duplicate route names in Illuminate\Routing\AbstractRouteCollection::addToSymfonyRoutesCollection() method (#31755)
  • Changed Illuminate\Support\Str::slug() method (e4f22d8)
  • Check if an array lock exists before releasing it in Illuminate\Cache\ArrayLock::release() (#31795)
  • Revert disabling expired views checks (#31798)

v7.0.4

Changed

  • Changed of route prefix parameter parsing (b38e179)

v7.0.3

Fixed

  • Fixed route caching attempt in Illuminate\Routing\CompiledRouteCollection::newRoute() (90b0167)
  • Catch Symfony exception in CompiledRouteCollection::match() method (#31738)
  • Fixed Eloquent model casting (2b395cd)
  • Fixed UrlGenerator constructor (#31740)

Changed

  • Added message to Illuminate\Http\Client\RequestException (#31720)

v7.0.2

Fixed

  • Fixed ascii() \ isAscii() \ slug() methods on the Str class with null value in the methods (#31717)
  • Fixed trim of the prefix in the CompiledRouteCollection::newRoute() (ce0355c, b842c65)

Changed

  • remove comments before compiling components in the BladeCompiler (2964d2d)

v7.0.1

Fixed

  • Fixed Illuminate\View\Component::withAttributes() method (c81ffad)
Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

image
Laravel Code Review

Get expert guidance in a few days with a Laravel code review

Visit Laravel Code Review
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $3200/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit

The latest

View all →
Statamic 6 Is Officially Released image

Statamic 6 Is Officially Released

Read article
Livewire 4 and Blade Improvements in Laravel VS Code Extension v1.5.0 image

Livewire 4 and Blade Improvements in Laravel VS Code Extension v1.5.0

Read article
Manage PostgreSQL Databases Directly in VS Code with Microsoft's Extension image

Manage PostgreSQL Databases Directly in VS Code with Microsoft's Extension

Read article
NativePHP for Mobile Is Now Free image

NativePHP for Mobile Is Now Free

Read article
Fuse for Laravel: A Circuit Breaker Package for Queue Jobs image

Fuse for Laravel: A Circuit Breaker Package for Queue Jobs

Read article
Generate Complete Application Modules with a Single Command using Laravel TurboMaker image

Generate Complete Application Modules with a Single Command using Laravel TurboMaker

Read article