protected function schedule(Schedule $schedule)
{
// Import LDAP users hourly.
$schedule->command('ldap:import ldap', [
'--no-interaction',
'--restore', // This will restore users which were soft deleted and LDAP now says they are enabled
'--delete', //This will soft delete any LDAP Users who are now disabled.
'--delete-missing', //This will soft delete any records NOT found
'--filter' => '(objectclass=user)', //This is the LDAP filter - be care if using delete-missing to include a filter for ALL your records
])->hourly();
}