protected function form()
    {
        $form = app('antares.form')->of("antares.widgets: report")->extend(function (FormGrid $form) {
            $url = handles('antares::logger/report', ['csrf' => true]);
            $form->name('Report form');
            $form->simple($url, ['id' => 'report-form']);
            $form->layout('antares/logger::admin.report.form');
            $form->fieldset(trans('Error Page Report'), function (Fieldset $fieldset) {
                $location = Input::get('location');
                $fieldset->control('input:hidden', 'url')
                        ->value($location);
                $fieldset->control('textarea', 'description')
                        ->label(trans('Additional message: '))
                        ->attributes(['required' => 'required']);
                $control  = $fieldset->control('input:checkbox', 'always_send')
                        ->label(trans('Always send notification as default action in error page'));
                if ((int) memory('notification.send.always')) {
                    $control->checked();
                }
            });
            $form->ajaxable();
            $form->rules([
                'description' => ['required', 'max:4000', 'min:1']
            ]);
        });
        return $form;
    }
protected function form()
    {
        $form = app('antares.form')->of("antares.widgets: report")->extend(function (FormGrid $form) {
            $url = handles('antares::logger/report', ['csrf' => true]);
            $form->name('Report form');
            $form->simple($url, ['id' => 'report-form']);
            $form->layout('antares/logger::admin.report.form');
            $form->fieldset(trans('Error Page Report'), function (Fieldset $fieldset) {
                $location = Input::get('location');
                $fieldset->control('input:hidden', 'url')
                        ->value($location);
                $fieldset->control('textarea', 'description')
                        ->label(trans('Additional message: '))
                        ->attributes(['required' => 'required']);
                $control  = $fieldset->control('input:checkbox', 'always_send')
                        ->label(trans('Always send notification as default action in error page'));
                if ((int) memory('notification.send.always')) {
                    $control->checked();
                }
            });
            $form->ajaxable();
            $form->rules([
                'description' => ['required', 'max:4000', 'min:1']
            ]);
        });
        return $form;
    }
protected function form ( ) { $ form = app ( 'antares.form' ) -> of ( "antares.widgets: report" ) -> extend ( function ( FormGrid $ form ) { $ url = handles ( 'antares::logger/report' , [ 'csrf' => true ] ) ; $ form -> name ( 'Report form' ) ; $ form -> simple ( $ url , [ 'id' => 'report-form' ] ) ; $ form -> layout ( 'antares/logger::admin.report.form' ) ; $ form -> fieldset ( trans ( 'Error Page Report' ) , function ( Fieldset $ fieldset ) { $ location = Input :: get ( 'location' ) ; $ fieldset -> control ( 'input:hidden' , 'url' ) -> value ( $ location ) ; $ fieldset -> control ( 'textarea' , 'description' ) -> label ( trans ( 'Additional message: ' ) ) -> attributes ( [ 'required' => 'required' ] ) ; $ control = $ fieldset -> control ( 'input:checkbox' , 'always_send' ) -> label ( trans ( 'Always send notification as default action in error page' ) ) ; if ( ( int ) memory ( 'notification.send.always' ) ) { $ control -> checked ( ) ; } } ) ; $ form -> ajaxable ( ) ; $ form -> rules ( [ 'description' => [ 'required' , 'max:4000' , 'min:1' ] ] ) ; } ) ; return $ form ; }
create form instance of exception handler

@return Antares\Html\Form\FormBuilder
create form instance of exception handler