public function generate(GeneratorListener $listener)
    {
        $today = date('Y-m-d H:i:s');
        $model = new Report([
            'name'     => "System Analyzer Report {$today}",
            'html'     => Input::get('src'),
            'user_id'  => auth()->user()->id,
            'brand_id' => app('antares.memory')->make('primary')->get('brand.default'),
            'type_id'  => ReportType::where('name', Input::get('type', "analyzer"))->first()->id
        ]);
        if ($model->save()) {
            return $listener->generateSuccess($model->id);
        }
        return $listener->generateFailed();
    }
public function generate(GeneratorListener $listener)
    {
        $today = date('Y-m-d H:i:s');
        $model = new Report([
            'name'     => "System Analyzer Report {$today}",
            'html'     => Input::get('src'),
            'user_id'  => auth()->user()->id,
            'brand_id' => app('antares.memory')->make('primary')->get('brand.default'),
            'type_id'  => ReportType::where('name', Input::get('type', "analyzer"))->first()->id
        ]);
        if ($model->save()) {
            return $listener->generateSuccess($model->id);
        }
        return $listener->generateFailed();
    }
public function generate ( GeneratorListener $ listener ) { $ today = date ( 'Y-m-d H:i:s' ) ; $ model = new Report ( [ 'name' => "System Analyzer Report {$today}" , 'html' => Input :: get ( 'src' ) , 'user_id' => auth ( ) -> user ( ) -> id , 'brand_id' => app ( 'antares.memory' ) -> make ( 'primary' ) -> get ( 'brand.default' ) , 'type_id' => ReportType :: where ( 'name' , Input :: get ( 'type' , "analyzer" ) ) -> first ( ) -> id ] ) ; if ( $ model -> save ( ) ) { return $ listener -> generateSuccess ( $ model -> id ) ; } return $ listener -> generateFailed ( ) ; }
default generate action

@return View
default generate action