मैं पहले से ही पढ़ा है laravel-निर्यात एक्सेल. लेकिन मेरी परियोजना अलग है, जहां अपने प्रोजेक्ट नहीं किया है. कैसे बनाने के लिए निर्यात एक्सेल में laravel के बिना बनाने के लिए मॉडल? laravel8 और maatwebsite3
<?php
namespace App\Exports;
use Maatwebsite\Excel\Concerns\FromCollection;
class ExportExcel implements FromCollection
{
/**
* @return \Illuminate\Support\Collection
*/
public function collection()
{
//
}
}
मुझे क्या करना चाहिए के प्रकार के निर्यात में नियंत्रक, exportexcel और डाउनलोड बटन