Merge branch 'swagger_address' into 'master'

Missing resources address, district & swagger docs for it

See merge request CIEFWorldwideSdnBhd/shipping-portal!10
This commit is contained in:
Fairuz
2021-07-09 10:55:58 +00:00
2 changed files with 25 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class DistrictResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'id' => $this->id,
'city' => $this->name,
'state' => $this->state,
'country' => $this->country
];
}
}
File diff suppressed because one or more lines are too long