PHP code example of davispeixoto / laravel-salesforce

1. Go to this page and download the library: Download davispeixoto/laravel-salesforce library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

davispeixoto / laravel-salesforce example snippets


    'providers' => array(
        // other Laravel service providers ...
        'Davispeixoto\LaravelSalesforce\LaravelSalesforceServiceProvider'
    ),
    
    ...
    
    'aliases' => array(
        // other Laravel aliases
        'Salesforce' => 'Davispeixoto\LaravelSalesforce\Facades\Salesforce'
     );

    Route::get('/test', function() {
        try {
            echo print_r(Salesforce::describeLayout('Account'));
        } catch (Exception $e) {
            Log::error($e->getMessage());
            die($e->getMessage() . $e->getTraceAsString());
        }
    });
sh
	php artisan config:publish davispeixoto/laravel-salesforce