Commit 6013b886 authored by Taylor Otwell's avatar Taylor Otwell

Merge branch 'master' into develop

parents c87566b5 6a2bf447
/node_modules /node_modules
/public/storage /public/storage
/storage/*.key
/vendor /vendor
/.idea /.idea
Homestead.json Homestead.json
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
namespace App\Http\Controllers\Auth; namespace App\Http\Controllers\Auth;
use App\User; use App\User;
use Validator;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers; use Illuminate\Foundation\Auth\RegistersUsers;
class RegisterController extends Controller class RegisterController extends Controller
......
...@@ -20,6 +20,13 @@ class ResetPasswordController extends Controller ...@@ -20,6 +20,13 @@ class ResetPasswordController extends Controller
use ResetsPasswords; use ResetsPasswords;
/**
* Where to redirect users after resetting their password.
*
* @var string
*/
protected $redirectTo = '/home';
/** /**
* Create a new controller instance. * Create a new controller instance.
* *
......
...@@ -8,10 +8,8 @@ return [ ...@@ -8,10 +8,8 @@ return [
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Here you may specify the default filesystem disk that should be used | 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 | by the framework. The "local" disk, as well as a variety of cloud
| based drivers are available for your choosing. Just store away! | based disks are available to your application. Just store away!
|
| Supported: "local", "ftp", "s3", "rackspace"
| |
*/ */
...@@ -39,6 +37,8 @@ return [ ...@@ -39,6 +37,8 @@ return [
| may even configure multiple disks of the same driver. Defaults have | may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options. | been setup for each driver as an example of the required options.
| |
| Supported Drivers: "local", "ftp", "s3", "rackspace"
|
*/ */
'disks' => [ 'disks' => [
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
| |
*/ */
/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(App\User::class, function (Faker\Generator $faker) { $factory->define(App\User::class, function (Faker\Generator $faker) {
static $password; static $password;
......
...@@ -30,6 +30,6 @@ class CreateUsersTable extends Migration ...@@ -30,6 +30,6 @@ class CreateUsersTable extends Migration
*/ */
public function down() public function down()
{ {
Schema::drop('users'); Schema::dropIfExists('users');
} }
} }
...@@ -27,6 +27,6 @@ class CreatePasswordResetsTable extends Migration ...@@ -27,6 +27,6 @@ class CreatePasswordResetsTable extends Migration
*/ */
public function down() public function down()
{ {
Schema::drop('password_resets'); Schema::dropIfExists('password_resets');
} }
} }
const elixir = require('laravel-elixir'); const elixir = require('laravel-elixir');
require('laravel-elixir-vue'); require('laravel-elixir-vue-2');
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
...@@ -9,11 +9,11 @@ require('laravel-elixir-vue'); ...@@ -9,11 +9,11 @@ require('laravel-elixir-vue');
| |
| Elixir provides a clean, fluent API for defining some basic Gulp tasks | Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass | 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') mix.sass('app.scss')
.webpack('app.js'); .webpack('app.js');
}); });
...@@ -9,12 +9,12 @@ require('./bootstrap'); ...@@ -9,12 +9,12 @@ require('./bootstrap');
/** /**
* Next, we will create a fresh Vue application instance and attach it to * 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 page. Then, you may begin adding components to this application
* the application, or feel free to tweak this setup for your needs. * or customize the JavaScript scaffolding to fit your unique needs.
*/ */
Vue.component('example', require('./components/Example.vue')); Vue.component('example', require('./components/Example.vue'));
const app = new Vue({ const app = new Vue({
el: 'body' el: '#app'
}); });
...@@ -26,7 +26,7 @@ require('vue-resource'); ...@@ -26,7 +26,7 @@ require('vue-resource');
*/ */
Vue.http.interceptors.push((request, next) => { Vue.http.interceptors.push((request, next) => {
request.headers['X-CSRF-TOKEN'] = Laravel.csrfToken; request.headers.set('X-CSRF-TOKEN', Laravel.csrfToken);
next(); next();
}); });
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<script> <script>
export default { export default {
ready() { mounted() {
console.log('Component ready.') console.log('Component ready.')
} }
} }
......
...@@ -14,7 +14,7 @@ $brand-primary: #3097D1; ...@@ -14,7 +14,7 @@ $brand-primary: #3097D1;
$brand-info: #8eb4cb; $brand-info: #8eb4cb;
$brand-success: #2ab27b; $brand-success: #2ab27b;
$brand-warning: #cbb956; $brand-warning: #cbb956;
$brand-danger: #bf5329; $brand-danger: #bf5329;
// Typography // Typography
$font-family-sans-serif: "Raleway", sans-serif; $font-family-sans-serif: "Raleway", sans-serif;
......
...@@ -68,8 +68,12 @@ ...@@ -68,8 +68,12 @@
<div class="flex-center position-ref full-height"> <div class="flex-center position-ref full-height">
@if (Route::has('login')) @if (Route::has('login'))
<div class="top-right links"> <div class="top-right links">
<a href="{{ url('/login') }}">Login</a> @if (Auth::check())
<a href="{{ url('/register') }}">Register</a> <a href="{{ url('/home') }}">Home</a>
@else
<a href="{{ url('/login') }}">Login</a>
<a href="{{ url('/register') }}">Register</a>
@endif
</div> </div>
@endif @endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment