public function postMail()
    {
        $config = Binput::get('config');

        execute(new UpdateConfigCommand($config));

        return cachet_redirect('dashboard.settings.mail')
            ->withInput(Binput::all())
            ->withSuccess(trans('dashboard.notifications.awesome'));
    }
public function postMail()
    {
        $config = Binput::get('config');

        execute(new UpdateConfigCommand($config));

        return cachet_redirect('dashboard.settings.mail')
            ->withInput(Binput::all())
            ->withSuccess(trans('dashboard.notifications.awesome'));
    }
public function postMail ( ) { $ config = Binput :: get ( 'config' ) ; execute ( new UpdateConfigCommand ( $ config ) ) ; return cachet_redirect ( 'dashboard.settings.mail' ) -> withInput ( Binput :: all ( ) ) -> withSuccess ( trans ( 'dashboard.notifications.awesome' ) ) ; }
Handle updating of the settings.

@return \Illuminate\Http\RedirectResponse
Handle updating of the settings .