restore composer.json, add mysqli extension
This commit is contained in:
17
app/Exports/OrdersExport.php
Executable file
17
app/Exports/OrdersExport.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports;
|
||||
|
||||
use App\Models\Order;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class OrdersExport implements FromView
|
||||
{
|
||||
public function view(): View
|
||||
{
|
||||
return view('dashboard.orders.export', [
|
||||
'orders' => Order::all()
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user