compact('topicname'))); } public function new() { if ($this->request->data) { $topic = Topic::create($this->request->data); $topic->save(); } } }