19 lines
359 B
PHP
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));
|
|
}
|
|
}
|