Laravel Blade @include .html files
While @PHPWeblineindia's solution worked for you, it's not really the Laravel way.
However, you can do what you want by telling Laravel's view system to also consider .html
files. By default it looks for .blade.php
files, and then falls back to .php
files. You can add .html
to the searched extensions by adding the following somewhere in your bootstrapping code:
// tells the view finder to look for `.html` files and run// them through the normal PHP `include` processView::addExtension('html', 'php');
This will actually put HTML as the highest priority, so make sure you don't have two different views called the same thing with different extensions.