- Introduced routes for managing admin settings including system, homepage, social media, marketplace, and HR settings. - Created a comprehensive test suite for the AdminSettingsController to ensure proper functionality and validation of settings updates. - Implemented tests for authentication, data integrity, and realistic user scenarios to validate the settings management process.
18 lines
555 B
PHP
18 lines
555 B
PHP
<?php
|
|
|
|
use Spatie\LaravelSettings\Migrations\SettingsBlueprint;
|
|
use Spatie\LaravelSettings\Migrations\SettingsMigration;
|
|
|
|
return new class extends SettingsMigration
|
|
{
|
|
public function up(): void
|
|
{
|
|
$this->migrator->inGroup('hr', function (SettingsBlueprint $blueprint): void {
|
|
$blueprint->add('scheduled_check_in_time', '08:00');
|
|
$blueprint->add('scheduled_check_out_time', '17:00');
|
|
$blueprint->add('late_penalty_amount', 0);
|
|
$blueprint->add('absent_penalty_amount', 0);
|
|
});
|
|
}
|
|
};
|