Skip to content

Commit

Permalink
Merge pull request #106 from tfevens/serverTypes
Browse files Browse the repository at this point in the history
[3.x] Add types to Server object
  • Loading branch information
driesvints authored Feb 24, 2021
2 parents 19d55e8 + eb69096 commit 40bc357
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Resources/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ class Server extends Resource
*/
public $name;

/**
* The type of the server.
*
* @var string
*/
public $type;

/**
* The id of the provider credential instance.
*
Expand Down
13 changes: 13 additions & 0 deletions src/Resources/ServerTypes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace Laravel\Forge\Resources;

class ServerTypes
{
const APP = 'app';
const WEB = 'web';
const LOADBALANCER = 'loadbalancer';
const CACHE = 'cache';
const DATABASE = 'database';
const WORKER = 'worker';
}

0 comments on commit 40bc357

Please sign in to comment.