'flarum', 'environment' => 'production', 'baseURL' => '/', 'apiURL' => '/api', 'locationType' => 'hash', 'EmberENV' => [], 'APP' => [], 'forumTitle' => Config::get('flarum::forum_title', 'Flarum Demo Forum'), 'welcomeDescription' => 'Flarum is now at a point where you can have basic conversations, so here is a little demo for you to break. Learn more »' ]; $data = []; $session = []; $alert = Session::get('alert'); if (($user = $this->actor->getUser()) && $user->exists) { $session = [ 'userId' => $user->id, 'token' => Cookie::get('flarum_remember') ]; $response = $this->callAction('Flarum\Api\Actions\Users\ShowAction', ['id' => $user->id]); $response = $response->getData(); $data = [$response->data]; if (isset($response->included)) { $data = array_merge($data, $response->included); } } return View::make('flarum.web::ember') ->with('title', Config::get('flarum::forum_title', 'Flarum Demo Forum')) ->with('styles', app('flarum.web.assetManager')->styles()) ->with('scripts', app('flarum.web.assetManager')->scripts()) ->with('config', $config) ->with('content', '') ->with('data', $data) ->with('session', $session) ->with('alert', $alert); } }