This is the code repo for the Scotch School course: Build a Monthly Subscription App with Laravel Cashier.
- Clone the repo:
git clone git@github.com:scotch-io/laravel-cashier-course
- Go into the repo:
cd laravel-cashier-course
- Install dependencies:
composer install
- Copy
.env.example
to.env
:cp .env.example .env
- Create a key:
php artisan key:generate
- Fill in 'BRAINTREE_ENV=sandbox' 'BRAINTREE_MERCHANT_ID' 'BRAINTREE_PUBLIC_KEY' 'BRAINTREE_PRIVATE_KEY' in
.env
- Start the app:
php artisan serve
- Visit the app: http://localhost:8000
Since this is laravel 5.2 i used "laravel/cashier-braintree": "~1.0". for more follow the official docs : https://laravel.com/docs/5.2/billing#braintree-configuration