More logic for deleting databases

This commit is contained in:
Dane Everitt 2018-08-25 15:07:42 -07:00
parent 9be2aa4ca9
commit 0999ec93c3
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 68 additions and 35 deletions

View file

@ -143,6 +143,14 @@ class Server extends Model implements CleansAttributes, ValidableContract
return Schema::getColumnListing($this->getTable());
}
/**
* @return bool
*/
public function isInstalled(): bool
{
return $this->installed === 1;
}
/**
* Gets the user who owns the server.
*