composer update and fix PSR4 issues

This commit is contained in:
Jérémy Munsch 2024-01-22 15:19:45 +01:00
parent dc93bd69e7
commit a0cca94221
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
3 changed files with 637 additions and 526 deletions

View file

@ -7,7 +7,7 @@ use App\Http\Requests\StoreWhoareweExpertiseDetailRequest;
use App\Models\WhoareweExpertiseDetail;
use Illuminate\Support\Facades\DB;
class WhoareweexpertisedetailsController extends Controller
class WhoareweExpertiseDetailsController extends Controller
{
/**
* Show the form for editing the specified resource.

View file

@ -1,44 +0,0 @@
<?php
namespace App\Traits;
use Kwaadpepper\Enum\Traits\CastsEnums;
trait CastsEnumsHasTranslations
{
use CastsEnums {
CastsEnums::getAttributeValue as enumGetAttributeValue;
CastsEnums::setAttribute as enumSetAttribute;
}
/**
* Manually mix getAttributeValue from CastsEnums and HasTranslations
*
* @param string $key
* @return mixed
*/
public function getAttributeValue(string $key)
{
if ($this->hasEnumCast($key)) {
return $this->enumGetAttributeValue($key);
}
return $this->transGetAttributeValue($key);
}
/**
* Manually mix setAttribute from CastsEnums and HasTranslations
*
* @param string $key
* @param mixed $value
* @return $this
*/
public function setAttribute(string $key, $value)
{
if ($this->hasEnumCast($key)) {
return $this->enumSetAttribute($key, $value);
}
return $this->transSetAttribute($key, $value);
}
}

1117
composer.lock generated

File diff suppressed because it is too large Load diff