blog_1.pages.disclaimer was not found.
Did you mean blog_3.pages.disclaimer?
Stack Trace
- File: Illuminate\View\FileViewFinder
- Line: 137
- File: Illuminate\View\FileViewFinder
- Line: 79
- File: App\Http\Controllers\PageController
- Line: 230
- File: App\Http\Middleware\IfAppIsActive
- Line: 34
Method: findInPaths
/**
* @param array $paths
* @return string
*
* @throws \InvalidArgumentException
*/
protected function findInPaths($name, $paths)
{
foreach ((array) $paths as $path) {
foreach ($this->getPossibleViewFiles($name) as $file) {
if ($this->files->exists($viewPath = $path.'/'.$file)) {
return $viewPath;
}
}
}
throw new InvalidArgumentException("View [{$name}] not found.");
}
/**
* Get an array of possible view files.
*
* @param string $name
* @return array
*/
protected function getPossibleViewFiles($name)
{
return array_map(function ($extension) use ($name) {
return str_replace('.', '/', $name).'.'.$extension;
}, $this->extensions);
}