common = new Common; } public function index () { if (!isset($this->common->user->me) || is_null($this->common->user->me)) { return redirect('/peertube/login'); } $res = [ 'page' => 'dummy', 'userinfo' => $this->common->user, ]; // $res['owner'] = $this->getOwner($id); return view('pages.peertube.notyet', ['res' => $res]); } function getOwner ($id) { return $this->ptapi_get('/api/v1/accounts/'.$id); } }