Skip to content

Commit

Permalink
fix mail service
Browse files Browse the repository at this point in the history
  • Loading branch information
albertcht committed Dec 31, 2017
1 parent 9733d18 commit 29d4020
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
App\Console\Kernel::class
);

$app->singleton('mailer', function ($app) {
return $app->loadComponent('mail', 'Illuminate\Mail\MailServiceProvider', 'mailer');
});

$app->alias('mailer', Illuminate\Contracts\Mail\Mailer::class);

/*
|--------------------------------------------------------------------------
| Register Middleware
Expand Down
6 changes: 6 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
$router->get('{driver}/callback', ['as' => 'oauth.callback', 'uses' => 'Auth\OAuthController@handleProviderCallback']);
});

$router->get('{driver}/callback', ['as' => 'oauth.callback', 'uses' => 'Auth\OAuthController@handleProviderCallback']);

$router->get('{path:.*}', function () {
return view('index');
});

$router->get('password/reset/{token}', ['as' => 'password.reset', function () {
return view('index');
}]);

0 comments on commit 29d4020

Please sign in to comment.