Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hsnch41's avatar

Laravel 5.5 layout.app not found

Help me to solve this issue. C:\xampp\htdocs\cm2\vendor\laravel\framework\src\Illuminate\View\FileViewFinder.php /** * Find the given view in the list of paths. * * @param string $name * @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);
}

/**
 * Add a location to the finder.
 *
 * @param  string  $location
 * @return void

Arguments "View [layouts.app] not found. (View: C:\xampp\htdocs\cm2\resources\views\welcome.blade.php)"

0 likes
9 replies
sutherland's avatar

Does your project have a file named /resources/views/layouts/app.blade.php? Your welcome.blade.php view must be trying to extend this other view but it doesn't exist.

labofa's avatar

@sutherland mine dont...

dont the layout folder come as default or does one have to create one

hsnch41's avatar

yes sir,my file is existing according to this path,but i still unable to find.

hsnch41's avatar

View [layouts.app] not found. (View: C:\xampp\htdocs\cm1\resources\views\welcome.blade.php)

sutherland's avatar

What was the solution? Please share in case someone encounters the same problem in the future.

hsnch41's avatar

it was just due to wrong path,i was making layouts folder in resources not in views.

ErenChristian's avatar

I am facing same issue even though I placed files in correct path.

labofa's avatar

same issue now but cant seem to find the layout folder in the views is the layout folder not an already installed folder that comes with laravel or do i need to create one...

still new to laravel.

Please or to participate in this conversation.