Support the ongoing development of Laravel.io →
Views Blade Packages

I have a folder structure like this: -app --modules ---Account ----Views ----layout.blade.php ----a -----login.blade.php In layout.blade.php I use this function @include("a.login") but exception occur, I see if I create the same file in resouces/views/a/login.blade.php then exception appeared. How do I run @include("a.login") in modules/account/views/?

Last updated 2 years ago.
0

You can add paths for your view files into the paths array found in config/view.php

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.