Laravel Views now support html as a file type in v5.8.18

Laravel Views now support html as a file type in v5.8.18

The Laravel team released Laravel 5.8.18 with HTML as a valid extension option for views. With this release, you can pass a path to an HTML file which will not be compiled but rendered as-is—similar to how rendering a file with a .css extension works.

Next, you can provide a notification callback with Swift message, providing developers direct access to the Swift message before it is fired off:

$message = new MailMessage();
$message->withSwiftMessage(function ($message) {
    // ....
});

You can see the full list of fixes below, and the whole diff between 5.8.17 and 5.8.18 on GitHub. The full release notes for Laravel 5.8 are available in the GitHub 5.8 changelog:

v5.8.18

Added

  • Added html as a new valid extension for views (#28541)
  • Added: provide notification callback withSwiftMessage in MailMessage (#28535)

Fixed

  • Fixed Illuminate\Cache\FileStore::getPayload() in case of broken cache (#28536)
  • Fixed exception: The filename fallback must only contain ASCII characters in the Illuminate\Filesystem\FilesystemAdapter::response() (#28551)

Changed

  • Make Support\Testing\Fakes\MailFake::failures() returns an empty array (#28538)
  • Make Support\Testing\Fakes\BusFake::pipeThrough() returns $this (#28564)

Refactoring

Filed in: News / Releases
Laravel News Partners

Laravel Jobs

PHP Developer - Full time w/ benefits, US Only
Northern Virginia or Remote (US Only)
Guidance Residential
Full Stack Developer
Remote
Wehaa.com
Laravel API Developer
Las Vegas, NV (Must work on-site)
V Shred
Laravel Developer (Vue, SQL Server)
Remote
World Trade Organization
Web Application Developer (Vue.js & Laravel)
Remote
Apero Creative Development

Newsletter

Join 31,000+ others and never miss out on new tips, tutorials, and more.