19 lines
364 B
PHP
19 lines
364 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 GetPrinterController
|
|
{
|
|
|
|
|
|
public function __invoke(string $id)
|
|
{
|
|
$printer = Printer::find($id);
|
|
|
|
return ApiResponse::handle(ListPrinterResource::make($printer));
|
|
}
|
|
}
|