fix: 🐛 set type_activite field to lowercase
This commit is contained in:
parent
b228223db7
commit
e2aa50e35e
1 changed files with 2 additions and 1 deletions
|
|
@ -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));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue