Add manage link to email notifications
This commit is contained in:
committed by
Graham Campbell
parent
af0e578a44
commit
e51504b3ec
@@ -131,11 +131,13 @@ class SubscribeController extends Controller
|
||||
/**
|
||||
* Shows the subscription manager page.
|
||||
*
|
||||
* @param string|null $code
|
||||
*
|
||||
* @return \Illuminate\View\View
|
||||
*/
|
||||
public function showManage()
|
||||
public function showManage($code = null)
|
||||
{
|
||||
if (!($code = Binput::get('subscriber'))) {
|
||||
if ($code === null) {
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,8 +39,8 @@ class SubscribeRoutes
|
||||
'uses' => 'SubscribeController@postSubscribe',
|
||||
]);
|
||||
|
||||
$router->get('subscribe/manage', [
|
||||
'as' => 'subscribe.manage',
|
||||
$router->get('subscribe/manage/{code}', [
|
||||
'as' => 'manage',
|
||||
'uses' => 'SubscribeController@showManage',
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user