1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- use App\Billing\Stripe;
- App::bind(Stripe::class, function () {
- return new Stripe(config('services.stripe.key'));
- });
- $stripe = App::make(Stripe::class);
- $stripeAgain = app(Stripe::class);
- $stripeAlso = resolve(Stripe::class);
- $stripeToo = app()->make(Stripe::class);
- dd($stripe, $stripeAgain, $stripeAlso, $stripeToo);
- $this->get('/', 'PostsController@index')
- ->name('home');
- $this->post('/posts', 'PostsController@store');
- $this->get('/posts/create', 'PostsController@create');
- $this->get('/posts/{post}', 'PostsController@show');
- $this->post('/posts/{post}/comments', 'CommentsController@store');
- $this->get('register', 'RegistrationController@create');
- $this->post('register', 'RegistrationController@store');
- $this->get('login', 'SessionsController@create');
- $this->post('login', 'SessionsController@store');
- $this->get('logout', 'SessionsController@destroy');
|