Files
jobifygarden/app/Http/Resources/JobSourceResource.php
T

27 lines
601 B
PHP
Raw Normal View History

2026-04-03 01:04:19 +03:00
<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class JobSourceResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'name' => $this->name,
'slug' => $this->slug,
'api_type' => $this->api_type,
'website_url' => $this->website_url,
'is_active' => $this->is_active,
];
}
}