title: Stripe Cashier ErrorException in StripeGateway.php line 71:
body: <p>im using laravel 5.1 and followed the steps in <a href="https://laravel.com/docs/5.1/billing" rel="nofollow noreferrer">https://laravel.com/docs/5.1/billing</a></p>
  
  <p>except for the provider need to 2 keys</p>
  
  <pre><code>'key'    =&gt; env('STRIPE_KEY'),
  'secret' =&gt; env('STRIPE_SECRET'),
  </code></pre>
  
  <p>i set it in my .env file as </p>
  
  <pre><code>STRIPE_KEY=@my_stripe_test_publishable_key
  STRIPE_SECRET=@my_stripe_test_secret_key
  </code></pre>
  
  <p>my controller code is</p>
  
  <pre><code>$creditCardToken = $request-&gt;stripeToken; //from stripe documentation
  //because the documentation didnt include how to get this variable
  
  $user = User::find(1);
  
  $user-&gt;subscription('monthly')-&gt;create($creditCardToken);
  
  $user-&gt;trial_ends_at = Carbon::now()-&gt;addDays(14);
  
  $user-&gt;save();  
  </code></pre>
  
  <p>an error appears everytime i try to subscribed. even without the $creditCardToken variable</p>
  
  <p>ErrorException in StripeGateway.php line 71:</p>
  
  <p>Argument 1 passed to Laravel\Cashier\StripeGateway::__construct() must be an instance of Laravel\Cashier\Contracts\Billable, instance of App\User given, called in C:\wamp\www\lifesaver\vendor\laravel\cashier\src\Laravel\Cashier\Billable.php on line 58 and defined</p>