Support the ongoing development of Laravel.io →
posted 10 years ago
Views Blade
Last updated 2 years ago.
0

Answering my own question:

The solution is namespacing. On routes.php (or wherever you are registering your desired routes):

View::addNamespace('theme', app('path') . '/src/foo');

Then finally on your view file:

@extends('theme::support.view.layout')

That's it! View now points to the layout file located at /app/src/foo/support/view/layout.blade.php. Note that the case doesn't actually matter as long as it's in lowercase, which is the common practice but not mandatory.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jhourlad jhourlad Joined 16 Jun 2014

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.

© 2024 Laravel.io - All rights reserved.