Change Permission & WIP Dashboard Client Portal

This commit is contained in:
Fajar
2023-04-06 15:30:22 +07:00
parent 4a7c3ebdda
commit 85039893a8
1497 changed files with 2808 additions and 2508 deletions

7
app/Models/CorporatePolicy.php Executable file → Normal file
View File

@@ -28,7 +28,7 @@ class CorporatePolicy extends Model
'end',
'active',
];
protected $hidden = [
'created_at',
'updated_at',
@@ -66,11 +66,6 @@ class CorporatePolicy extends Model
$this->attributes['code'] = !empty($value) ? $value : Str::upper(Str::random('6'));
}
// public function setPolicyIdAttribute($value)
// {
// $this->attributes['policy_id'] = !empty($value) ? $value : Str::upper(Str::random('6'));
// }
public function setStartAttribute($value)
{
$this->attributes['start'] = !empty($value) ? Carbon::parse($value)->format('Y-m-d') : null;