src/package/Data/Repositories/Support/Projects.php
public function deleteMissingProjects($projects)
    {
        foreach (Project::all() as $project) {
            if (!in_array($project->name, $projects)) {
                $project->delete();
            }
        }
    }
public function deleteMissingProjects($projects)
    {
        foreach (Project::all() as $project) {
            if (!in_array($project->name, $projects)) {
                $project->delete();
            }
        }
    }
public function deleteMissingProjects ( $ projects ) { foreach ( Project :: all ( ) as $ project ) { if ( ! in_array ( $ project -> name , $ projects ) ) { $ project -> delete ( ) ; } } }
Delete unavailable projects.

@param $projects
Delete unavailable projects .