From 99fca4daef213adaa11a5472b429f53aeedc076f Mon Sep 17 00:00:00 2001 From: Laurence Ioannou Date: Fri, 7 Apr 2017 21:11:39 +0100 Subject: [PATCH 1/2] Update RegisterController.php --- app/Http/Controllers/Auth/RegisterController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index c5c83e5c..ed8d1b77 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -48,9 +48,9 @@ public function __construct() protected function validator(array $data) { return Validator::make($data, [ - 'name' => 'required|max:255', - 'email' => 'required|email|max:255|unique:users', - 'password' => 'required|min:6|confirmed', + 'name' => 'required|string|max:255', + 'email' => 'required|string|email|max:255|unique:users', + 'password' => 'required|string|min:6|confirmed', ]); } From 17ec5c51d60bb05985f287f09041c56fcd41d9ce Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 17 Apr 2017 15:30:36 -0500 Subject: [PATCH 2/2] Move the location of Vue inclusion. --- resources/assets/js/app.js | 2 ++ resources/assets/js/bootstrap.js | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index 9f086255..c1620c1b 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -7,6 +7,8 @@ require('./bootstrap'); +window.Vue = require('vue'); + /** * Next, we will create a fresh Vue application instance and attach it to * the page. Then, you may begin adding components to this application diff --git a/resources/assets/js/bootstrap.js b/resources/assets/js/bootstrap.js index 86574839..f9c72e19 100644 --- a/resources/assets/js/bootstrap.js +++ b/resources/assets/js/bootstrap.js @@ -11,14 +11,6 @@ window.$ = window.jQuery = require('jquery'); require('bootstrap-sass'); -/** - * Vue is a modern JavaScript library for building interactive web interfaces - * using reactive data binding and reusable components. Vue's API is clean - * and simple, leaving you to focus on building your next great project. - */ - -window.Vue = require('vue'); - /** * We'll load the axios HTTP library which allows us to easily issue requests * to our Laravel back-end. This library automatically handles sending the