Laravel 7.0.8 Released

Published on by

Laravel 7.0.8 Released image

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.

Laravel Forge logo

Laravel Forge

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

Laravel Forge
Tinkerwell logo

Tinkerwell

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

Tinkerwell
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $7500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
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
Bacancy logo

Bacancy

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

Bacancy
Lucky Media logo

Lucky Media

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

Lucky Media
Lunar: Laravel E-Commerce logo

Lunar: Laravel E-Commerce

E-Commerce for Laravel. An open-source package that brings the power of modern headless e-commerce functionality to Laravel.

Lunar: Laravel E-Commerce
LaraJobs logo

LaraJobs

The official Laravel job board

LaraJobs
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
Supercharge Your SaaS Development with FilamentFlow: The Ultimate Laravel Filament Boilerplate logo

Supercharge Your SaaS Development with FilamentFlow: The Ultimate Laravel Filament Boilerplate

Build your SaaS application in hours. Out-of-the-box multi-tenancy and seamless Stripe integration. Supports subscriptions and one-time purchases, allowing you to focus on building and creating without repetitive setup tasks.

Supercharge Your SaaS Development with FilamentFlow: The Ultimate Laravel Filament Boilerplate
Rector logo

Rector

Your partner for seamless Laravel upgrades, cutting costs, and accelerating innovation for successful companies

Rector
MongoDB logo

MongoDB

Enhance your PHP applications with the powerful integration of MongoDB and Laravel, empowering developers to build applications with ease and efficiency. Support transactional, search, analytics and mobile use cases while using the familiar Eloquent APIs. Discover how MongoDB's flexible, modern database can transform your Laravel applications.

MongoDB

The latest

View all →
Asymmetric Property Visibility in PHP 8.4 image

Asymmetric Property Visibility in PHP 8.4

Read article
Access Laravel Pulse Data as a JSON API image

Access Laravel Pulse Data as a JSON API

Read article
Laravel Forge adds Statamic Integration image

Laravel Forge adds Statamic Integration

Read article
Transform Data into Type-safe DTOs with this PHP Package image

Transform Data into Type-safe DTOs with this PHP Package

Read article
PHPxWorld - The resurgence of PHP meet-ups with Chris Morrell image

PHPxWorld - The resurgence of PHP meet-ups with Chris Morrell

Read article
Herd Executable Support and Pest 3 Mutation Testing in PhpStorm 2024.3 image

Herd Executable Support and Pest 3 Mutation Testing in PhpStorm 2024.3

Read article