Optimized Laravel development environment for building Salesforce API integration packages with robust REST client patterns.
Development environment configuration for building Laravel packages that integrate with Salesforce APIs through REST clients.
Configures Cursor to provide optimal IDE support for Laravel-based Salesforce integration development, including API clients, authentication flows, data synchronization, and enterprise CRM connectivity patterns.
Monitor and provide enhanced support for these Laravel file types:
Enable full PHP language server capabilities:
Exclude these directories from indexing and search for performance:
When working on Salesforce integrations:
1. **API Client Structure**: Organize REST client methods by Salesforce objects (Account, Contact, Lead, Opportunity)
2. **Authentication**: Implement OAuth 2.0 flows with token refresh handling
3. **Error Handling**: Wrap Salesforce API calls with try-catch for rate limits and connection failures
4. **Data Mapping**: Create clear mappings between Laravel Eloquent models and Salesforce objects
5. **Configuration**: Store Salesforce credentials and endpoints in `config/salesforce.php`
6. **Testing**: Mock Salesforce API responses in tests using Laravel HTTP fakes
7. **Queueing**: Use Laravel queues for bulk data sync operations to avoid timeouts
Structure your Laravel Salesforce package:
```
src/
├── SalesforceServiceProvider.php
├── Client/
│ ├── SalesforceClient.php
│ └── Authentication/
├── Models/
│ └── SalesforceObject.php
├── Services/
│ └── SyncService.php
└── Exceptions/
└── SalesforceException.php
```
Ensure `config/salesforce.php` includes:
**Creating a Salesforce Account:**
```php
$client->create('Account', [
'Name' => 'Acme Corp',
'Industry' => 'Technology'
]);
```
**Querying Contacts:**
```php
$client->query("SELECT Id, Name, Email FROM Contact WHERE AccountId = '{$accountId}'");
```
**Handling Authentication:**
```php
$token = $authenticator->getAccessToken();
$client->setToken($token);
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/laravel-salesforce-integration-development/raw