Poker I apologize if I posted in the wrong topic. but I don't know how to return view in a controller. someone help me 1 example.
clarkwinkelmann Poker can you describe what you are trying to achieve? In a Flarum extension you rarely want to return a view, unless the page is completely outside of the single page application. There's only one page in all of Flarum that's outside of the single page application, it's the email confirmation page. You can see how the Laravel Illuminate\Contracts\View\Factory is resolved out of the IOC here https://github.com/flarum/core/blob/master/src/Forum/Controller/ConfirmEmailViewController.php