It sounds like you're encountering an issue with the server size selection during the creation process on Laravel Forge. The error message "Invalid size. Provide a valid size or ID." indicates that the size you've selected for your server is not recognized by the Forge system or the underlying cloud provider.
Here's what you can do to resolve this issue:
-
Check Available Sizes: Make sure that you are selecting a server size that is available and supported by the cloud provider you are using (e.g., DigitalOcean, AWS, Linode). Each provider has its own set of server sizes, and sometimes these can change or be updated.
-
Refresh the Page: There might be a temporary glitch with the Forge interface. Try refreshing the page and attempting to create the server again.
-
Clear Browser Cache: Sometimes, your browser cache might have outdated information that could cause this issue. Clear your browser cache and try again.
-
Use the API: If the Forge UI is not working for you, consider using the Forge API to create your server. You can specify the size directly in the API request. Here's an example of how you might do this with a hypothetical size:
$forge = new Forge('your-forge-api-token');
$server = $forge->createServer([
'provider' => 'ocean2', // This is for DigitalOcean, change accordingly
'credential_id' => 1, // Your credential ID for the provider
'name' => 'my-server',
'size' => 's-1vcpu-1gb', // Replace with the valid size slug
'database' => 'my-database',
'php_version' => 'php80',
// ... other options
]);
- Contact Support: If none of the above steps work, it's best to contact Laravel Forge support. They can provide more detailed assistance and help you troubleshoot the issue. You can reach out to them via the support options within your Forge dashboard.
Remember to replace placeholders like 'your-forge-api-token', 'credential_id', and 'size' with the actual values that correspond to your Forge account and the server you want to create.