printer-manager-admin/app/Http/Controllers/Api/Printer/ListPrinterController.php
2023-11-01 22:27:44 +01:00

19 lines
359 B
PHP

<?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));
}
}