fix: 🐛 set type_activite field to lowercase

This commit is contained in:
Corentin Huet 2026-05-12 16:56:26 +02:00
parent b228223db7
commit e2aa50e35e

View file

@ -3,6 +3,7 @@
namespace App\Http\Controllers\Api;
use App\Models\Company;
use Illuminate\Support\Str;
class CompanyController
{
@ -25,7 +26,7 @@ class CompanyController
'url' => $company->url,
'latitude' => $company->latitude,
'longitude' => $company->longitude,
'type_activite' => $company->companyActivity->name,
'type_activite' => Str::lower($company->companyActivity->name),
'filiere' => $company->companySector?->name,
], fn($value) => !is_null($value));
});