diff --git a/.gitignore b/.gitignore index a374dac7..b278165a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /node_modules /public/storage +/storage/*.key /vendor /.idea Homestead.json diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 34c376cf..e48e2e3b 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -3,8 +3,8 @@ namespace App\Http\Controllers\Auth; use App\User; -use Validator; use App\Http\Controllers\Controller; +use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; class RegisterController extends Controller diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php index c73bf99f..cf726eec 100644 --- a/app/Http/Controllers/Auth/ResetPasswordController.php +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -20,6 +20,13 @@ class ResetPasswordController extends Controller use ResetsPasswords; + /** + * Where to redirect users after resetting their password. + * + * @var string + */ + protected $redirectTo = '/home'; + /** * Create a new controller instance. * diff --git a/config/filesystems.php b/config/filesystems.php index 75b50022..e1c4c953 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -8,10 +8,8 @@ return [ |-------------------------------------------------------------------------- | | Here you may specify the default filesystem disk that should be used - | by the framework. A "local" driver, as well as a variety of cloud - | based drivers are available for your choosing. Just store away! - | - | Supported: "local", "ftp", "s3", "rackspace" + | by the framework. The "local" disk, as well as a variety of cloud + | based disks are available to your application. Just store away! | */ @@ -39,6 +37,8 @@ return [ | may even configure multiple disks of the same driver. Defaults have | been setup for each driver as an example of the required options. | + | Supported Drivers: "local", "ftp", "s3", "rackspace" + | */ 'disks' => [ diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php index e0dc8694..7926c794 100644 --- a/database/factories/ModelFactory.php +++ b/database/factories/ModelFactory.php @@ -11,6 +11,7 @@ | */ +/** @var \Illuminate\Database\Eloquent\Factory $factory */ $factory->define(App\User::class, function (Faker\Generator $faker) { static $password; diff --git a/database/migrations/.gitkeep b/database/migrations/.gitkeep deleted file mode 100644 index 8b137891..00000000 --- a/database/migrations/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php index 55574ee4..689cbeea 100644 --- a/database/migrations/2014_10_12_000000_create_users_table.php +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -30,6 +30,6 @@ class CreateUsersTable extends Migration */ public function down() { - Schema::drop('users'); + Schema::dropIfExists('users'); } } diff --git a/database/migrations/2014_10_12_100000_create_password_resets_table.php b/database/migrations/2014_10_12_100000_create_password_resets_table.php index bda733da..1eefa405 100644 --- a/database/migrations/2014_10_12_100000_create_password_resets_table.php +++ b/database/migrations/2014_10_12_100000_create_password_resets_table.php @@ -27,6 +27,6 @@ class CreatePasswordResetsTable extends Migration */ public function down() { - Schema::drop('password_resets'); + Schema::dropIfExists('password_resets'); } } diff --git a/database/seeds/.gitkeep b/database/seeds/.gitkeep deleted file mode 100644 index 8b137891..00000000 --- a/database/seeds/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - diff --git a/gulpfile.js b/gulpfile.js index 04d503d8..c9de6ea3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,6 +1,6 @@ const elixir = require('laravel-elixir'); -require('laravel-elixir-vue'); +require('laravel-elixir-vue-2'); /* |-------------------------------------------------------------------------- @@ -9,11 +9,11 @@ require('laravel-elixir-vue'); | | Elixir provides a clean, fluent API for defining some basic Gulp tasks | for your Laravel application. By default, we are compiling the Sass - | file for our application, as well as publishing vendor resources. + | file for your application as well as publishing vendor resources. | */ -elixir(mix => { +elixir((mix) => { mix.sass('app.scss') .webpack('app.js'); }); diff --git a/package.json b/package.json index d490671c..58287379 100644 --- a/package.json +++ b/package.json @@ -8,11 +8,11 @@ "bootstrap-sass": "^3.3.7", "gulp": "^3.9.1", "jquery": "^3.1.0", - "laravel-elixir": "^6.0.0-9", - "laravel-elixir-vue": "^0.1.4", + "laravel-elixir": "^6.0.0-11", + "laravel-elixir-vue-2": "^0.2.0", "laravel-elixir-webpack-official": "^1.0.2", - "lodash": "^4.14.0", - "vue": "^1.0.26", - "vue-resource": "^0.9.3" + "lodash": "^4.16.2", + "vue": "^2.0.1", + "vue-resource": "^1.0.3" } } diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index 87dd5ad1..c63b3c33 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -9,12 +9,12 @@ require('./bootstrap'); /** * Next, we will create a fresh Vue application instance and attach it to - * the body of the page. From here, you may begin adding components to - * the application, or feel free to tweak this setup for your needs. + * the page. Then, you may begin adding components to this application + * or customize the JavaScript scaffolding to fit your unique needs. */ Vue.component('example', require('./components/Example.vue')); const app = new Vue({ - el: 'body' + el: '#app' }); diff --git a/resources/assets/js/bootstrap.js b/resources/assets/js/bootstrap.js index 3f4c5cf5..a2f3529f 100644 --- a/resources/assets/js/bootstrap.js +++ b/resources/assets/js/bootstrap.js @@ -26,7 +26,7 @@ require('vue-resource'); */ Vue.http.interceptors.push((request, next) => { - request.headers['X-CSRF-TOKEN'] = Laravel.csrfToken; + request.headers.set('X-CSRF-TOKEN', Laravel.csrfToken); next(); }); diff --git a/resources/assets/js/components/Example.vue b/resources/assets/js/components/Example.vue index 067ef661..86a0b70f 100644 --- a/resources/assets/js/components/Example.vue +++ b/resources/assets/js/components/Example.vue @@ -16,7 +16,7 @@