public function export_csv(Devis $devis, Table $table)
 {
     //dd();
     \Excel::create($table->name, function ($excel) use($table) {
         $excel->sheet('Sheetname', function ($sheet) use($table) {
             $columns = DB::connection()->getDoctrineSchemaManager()->listTableColumns($table->tableName);
             $classname = $table->modelNamespaceClass();
             // $columns = collect($columns);
             //$data = $table->getColumns(); // As of PHP 5.3.0
             // $data = $classname::all(); // As of PHP 5.3.0
             $sheet->fromModel($columns);
         });
     })->download('csv');
 }