printer-manager-admin/app/Http/Controllers/Api/Printer/ListPrinterController.php

20 lines
359 B
PHP
Raw Normal View History

2023-11-01 21:27:44 +00:00
<?php
namespace App\Http\Controllers\Api\Printer;
use App\Http\Resources\Printer\ListPrinterResource;
use App\Models\Printer;
use App\Http\Responses\ApiResponse;
class ListPrinterController
{
public function __invoke()
{
$printers = Printer::all();
return ApiResponse::handle(ListPrinterResource::collection($printers));
}
}