2 months ago

Help with Load()

Posted 2 months ago by madsynn

My controller is using load on show but for some reason no data on the loaded items is working. Can someone please tell me what I am missing?

Do I need a file someplace to do something to make load work. here is my show function in my controller.

    public function show(Page $page)
        $contentPage->load('categories', 'tags', 'section');

        return view('', compact('page'));

Page loads fine but nothing else. How does the load work?

Please sign in or create an account to participate in this conversation.