title: Stripe - No API key provided (Laravel 5.1)
body: <p>I have problem with providing the Stripe API key. Everything is included, packages, all dependencies...  </p>
  
  <p>The error message I get: No API key provided. (HINT: set your API key using "Stripe::setApiKey()". You can generate API keys from the Stripe web interface. See <a href="https://stripe.com/api" rel="nofollow">https://stripe.com/api</a> for details, or email support@stripe.com if you have any questions.</p>
  
  <p>Controller:</p>
  
  <pre><code>    public function upgradeBronze() {
  
          $bid = Session::get('builderId');
  
          Stripe::setApiKey(env('KEY_SECRET'));
          $token = $_POST['stripeToken'];
  
          // Create the charge on Stripe's servers - this will charge the user's card
  
          try {
  
              $user = \App\User::find($bid);
              $user-&gt;subscription('monthly')-&gt;create($token);
              return Redirect::route('builders-packages');
  
          } catch(\Stripe\Error\Card $e) {
              return Redirect::route('builders-packages');
          }
  
  }
  </code></pre>
  
  <p>Error SS: <a href="http://pokit.org/get/img/5f7886d0d9a50ecf349312225c8c47ea.jpg" rel="nofollow">http://pokit.org/get/img/5f7886d0d9a50ecf349312225c8c47ea.jpg</a></p>