File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,32 @@ class InvoicesExport implements WithEvents
280
280
}
281
281
}
282
282
```
283
+ ### RTL (Right to Left) Sheets
284
+
285
+ To change the excel sheet direction you can use ` setRightToLeft(true) ` as in the below example
286
+
287
+ ``` php
288
+ namespace App\Exports;
289
+
290
+ use Maatwebsite\Excel\Concerns\WithEvents;
291
+ use Maatwebsite\Excel\Events\BeforeExport;
292
+ use Maatwebsite\Excel\Events\AfterSheet;
293
+
294
+ class InvoicesExport implements WithEvents
295
+ {
296
+ /**
297
+ * @return array
298
+ */
299
+ public function registerEvents(): array
300
+ {
301
+ return [
302
+ AfterSheet::class => function(AfterSheet $event) {
303
+ $event->sheet>getDelegate()->setRightToLeft(true);
304
+ },
305
+ ];
306
+ }
307
+ }
308
+ ```
283
309
284
310
Feel free to use the above macro, or be creative and invent your own!
285
311
You can’t perform that action at this time.
0 commit comments