Change Permission & WIP Dashboard Client Portal
This commit is contained in:
7
app/Models/CorporatePolicy.php
Executable file → Normal file
7
app/Models/CorporatePolicy.php
Executable file → Normal 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;
|
||||
|
||||
Reference in New Issue
Block a user