Question: how to export data in excel file in laravel?
Answer: Step 1: Install “Maatwebsite/Laravel-Excel” package. ... , Step 2: Register Route. ... , Step 3: Create Post Model. ... , Step 4: Create a custom export class.