I want to create forums directly from a Laravel page (Laravel 5.6) and I'm getting redirected to forum's 404 page (Sorry, we couldn't find that!). If i'm using this code bellow in a simple php file is working, if I'm using it from a Laravel Model it redirects me to the forum saying that the page is not found.
My test code from Forum model is:
class Forum extends Model
public static function test_forum ()
$reg = \ipsRegistry::instance();
$member = \IPSMember::load( 1 );
Is there a way to solve this?