| @@ 230-237 (lines=8) @@ | ||
| 227 | * |
|
| 228 | * @return static |
|
| 229 | */ |
|
| 230 | public function withMariaDb(string $database = 'forge') |
|
| 231 | { |
|
| 232 | $this->payload['maria'] = 1; |
|
| 233 | $this->payload['database'] = $database; |
|
| 234 | $this->payload['database_type'] = 'maria'; |
|
| 235 | ||
| 236 | return $this; |
|
| 237 | } |
|
| 238 | ||
| 239 | /** |
|
| 240 | * Indicates that server should be provisioned with MySQL. |
|
| @@ 246-253 (lines=8) @@ | ||
| 243 | * |
|
| 244 | * @return static |
|
| 245 | */ |
|
| 246 | public function withMysql(string $database = 'forge') |
|
| 247 | { |
|
| 248 | $this->payload['maria'] = 0; |
|
| 249 | $this->payload['database'] = $database; |
|
| 250 | $this->payload['database_type'] = 'mysql'; |
|
| 251 | ||
| 252 | return $this; |
|
| 253 | } |
|
| 254 | ||
| 255 | /** |
|
| 256 | * Indicates that server should be provisioned with PostrgreSQL. |
|
| @@ 262-269 (lines=8) @@ | ||
| 259 | * |
|
| 260 | * @return static |
|
| 261 | */ |
|
| 262 | public function withPostgres(string $database = 'forge') |
|
| 263 | { |
|
| 264 | $this->payload['maria'] = 0; |
|
| 265 | $this->payload['database'] = $database; |
|
| 266 | $this->payload['database_type'] = 'postgres'; |
|
| 267 | ||
| 268 | return $this; |
|
| 269 | } |
|
| 270 | ||
| 271 | /** |
|
| 272 | * Indicates that server should be provisioned as load balancer. |
|