title: AWS SDK for Laravel giving PHP fatal error
body: <p>I installed the <a href="https://github.com/aws/aws-sdk-php-laravel" rel="nofollow">https://github.com/aws/aws-sdk-php-laravel</a>‎ SDK and followed the instructions in the readme.md.  Everything installed, I put in my key, secret, region, etc. in the <code>/app/config/packages/aws/aws-sdk-php-laravel</code>.</p>
  
  <p><b>The Error I'm Getting</b>      </p>
  
  <pre><code>PHP Fatal error:  Class 'Aws\Common\Aws' not found in /Volumes/Data/Users/chris/Sites/ln.com/vendor/aws/aws-sdk-php-laravel/src/Aws/Laravel/AwsServiceProvider.php on line 48
  {"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'Aws\\Common\\Aws' not found","file":"\/Volumes\/Data\/Users\/chris\/Sites\/ln.com\/vendor\/aws\/aws-sdk-php-laravel\/src\/Aws\/Laravel\/AwsServiceProvider.php","line":48}}
  </code></pre>
  
  <p>Line 48 of that file referenced above simply says:</p>
  
  <pre><code>$aws = Aws::factory($config);
  </code></pre>
  
  <p><b>I installed per the instructions</b></p>
  
  <p>I put in my providers and aliases in /app/config/app.php with:</p>
  
  <pre><code>'Aws\Laravel\AwsServiceProvider'
  </code></pre>
  
  <p>in the providers array.</p>
  
  <p>I put in:</p>
  
  <pre><code>'AWS' =&gt; 'Aws\Laravel\AwsFacade'
  </code></pre>
  
  <p>in the aliases section.</p>
  
  <p>Then, I'm trying to use their same usage example:</p>
  
  <pre><code>    $s3 = AWS::get('s3');
  $s3-&gt;putObject(array(
      'Bucket'    =&gt; 'My Bucket',
      'Key'       =&gt; 'My Key',
      'SourceFile'=&gt; Config::get('settings.ProcessListings.image_dir') . $listing-&gt;mls_listing_id . "/test.txt"
                  ));
  </code></pre>
  
  <p><b>What I've Tried</b></p>
  
  <p>My only thoughts here were that in my file that I'm trying to use the SDK in, at the top I have:     </p>
  
  <pre><code>    use Illuminate\Console\Command;
      use Symfony\Component\Console\Input\InputOption;
      use Symfony\Component\Console\Input\InputArgument;
  </code></pre>
  
  <p>I've added to that:</p>
  
  <pre><code>use Aws\Laravel\AwsFacade;
  use Aws\Laravel\AwsServiceProvider;
  </code></pre>
  
  <p>and combinations of the two but neither work.  Any ideas?                          </p>