error('Your error message.'); return $this->success('Processed successfully.', '/'); } /** * Build a form here. */ public function form() { $this->text('activity')->required(); $this->text('name')->required(); $this->text('repay')->required(); } /** * The data of the form. * * @return array */ public function default() { return [ 'activity' => '0', 'forward' => '', 'repay' => '', ]; } }