Loading Custom Made Blade Views

Laraship QuestionsCategory: TechnicalLoading Custom Made Blade Views
jedjie asked 5 years ago
Hello,I am supposed to display my custom made views, I cant design this to the built-in Page Designer because its complex with displaying multiple records,how can I invoke this from my controller code, I already copied them under the saas themeI am using this normal method of loading blade view.return view(\'user.journals.index\')
2 Answers
Best Answer
laraship Staff answered 5 years ago

We just give you an example, we don't know what is the hint path for your custom module as you built it, this should be under your ServiceProvider boot function

        $this->loadViewsFrom(__DIR__ . '/resources/views', 'YourAliasName');

laraship Staff answered 5 years ago

Hello,

You need to call it with reference to your module name space for example if your module namespace is SAAS then

view.return view(’SAAS::user.journals.index’)