composer update and fix PSR4 issues
This commit is contained in:
parent
dc93bd69e7
commit
a0cca94221
3 changed files with 637 additions and 526 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
1117
composer.lock
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue