E-Invoice - New state field when filling E-invoice info, validation of tin field and msic code field, etc...

This commit is contained in:
Dillon Ngo
2025-05-19 02:54:00 +08:00
parent d3de6f8997
commit 0643b28329
11 changed files with 230 additions and 44 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class StateResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'id' => $this->id,
'state' => $this->name,
];
}
}