move ensureAuthenticated() from router to controller
Merge branch 'master' of github.com:rookiehugo/code-snippets