How to retrieve path to a compiled blade view in Sage 10?

Hi guys,

I’m using Sage 10 and everything is going smoothly, you guys have done a great job! There’s just one thing I cannot figure out; in Sage 9 there was a template_path helper so I could load in a partial (after an AJAX call) using the below:

include \App\template_path(locate_template('views/partials/partial-name.blade.php'));

What is the equivalent in Sage 10? I cannot find a compiledPath function anywhere.

Many thanks

1 Like

You’re looking for Roots\view()

OK thank you very much. I got it working with the below if anyone else comes across this:

echo Roots\view('partials.partial-name');
1 Like

This topic was automatically closed after 42 days. New replies are no longer allowed.