Completed
Push — master ( fcae4c...6f6645 )
by Andrea Marco
02:23
created
src/Pipes/Register/Hash.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -5,19 +5,19 @@
 block discarded – undo
5 5
 
6 6
 class Hash extends AbstractPipe {
7 7
 
8
-	/**
9
-	 * Run before the job is handled.
10
-	 *
11
-	 * @param	Illuminate\Contracts\Hashing\Hasher
12
-	 * @param	Cerbero\Auth\Jobs\RegisterJob	$job
13
-	 * @return	mixed
14
-	 */
15
-	public function before(Hasher $hasher, $job)
16
-	{
17
-		if($hasher->needsRehash($password = $job->attributes['password']))
18
-		{
19
-			$job->attributes['password'] = $hasher->make($password);
20
-		}
21
-	}
8
+    /**
9
+     * Run before the job is handled.
10
+     *
11
+     * @param	Illuminate\Contracts\Hashing\Hasher
12
+     * @param	Cerbero\Auth\Jobs\RegisterJob	$job
13
+     * @return	mixed
14
+     */
15
+    public function before(Hasher $hasher, $job)
16
+    {
17
+        if($hasher->needsRehash($password = $job->attributes['password']))
18
+        {
19
+            $job->attributes['password'] = $hasher->make($password);
20
+        }
21
+    }
22 22
 
23 23
 }
Please login to merge, or discard this patch.
src/Pipes/AbstractPipe.php 1 patch
Indentation   +100 added lines, -100 removed lines patch added patch discarded remove patch
@@ -10,117 +10,117 @@
 block discarded – undo
10 10
  */
11 11
 abstract class AbstractPipe {
12 12
 
13
-	/**
14
-	 * @author	Andrea Marco Sartori
15
-	 * @var		Illuminate\Contracts\Container\Container	$container	Service container.
16
-	 */
17
-	protected $container;
13
+    /**
14
+     * @author	Andrea Marco Sartori
15
+     * @var		Illuminate\Contracts\Container\Container	$container	Service container.
16
+     */
17
+    protected $container;
18 18
 	
19
-	/**
20
-	 * Set the dependencies.
21
-	 *
22
-	 * @author	Andrea Marco Sartori
23
-	 * @param	Illuminate\Contracts\Container\Container	$container
24
-	 * @return	void
25
-	 */
26
-	public function __construct(Container $container)
27
-	{
28
-		$this->container = $container;
29
-	}
19
+    /**
20
+     * Set the dependencies.
21
+     *
22
+     * @author	Andrea Marco Sartori
23
+     * @param	Illuminate\Contracts\Container\Container	$container
24
+     * @return	void
25
+     */
26
+    public function __construct(Container $container)
27
+    {
28
+        $this->container = $container;
29
+    }
30 30
 
31
-	/**
32
-	 * Handle the given job.
33
-	 *
34
-	 * @author	Andrea Marco Sartori
35
-	 * @param	mixed	$job
36
-	 * @param	Closure	$next
37
-	 * @return	mixed
38
-	 */
39
-	public function handle($job, Closure $next)
40
-	{
41
-		$this->callBefore($job);
31
+    /**
32
+     * Handle the given job.
33
+     *
34
+     * @author	Andrea Marco Sartori
35
+     * @param	mixed	$job
36
+     * @param	Closure	$next
37
+     * @return	mixed
38
+     */
39
+    public function handle($job, Closure $next)
40
+    {
41
+        $this->callBefore($job);
42 42
 
43
-		$handled = $next($job);
43
+        $handled = $next($job);
44 44
 
45
-		$this->callAfter($handled, $job);
45
+        $this->callAfter($handled, $job);
46 46
 
47
-		return $handled;
48
-	}
47
+        return $handled;
48
+    }
49 49
 
50
-	/**
51
-	 * Call the before method.
52
-	 *
53
-	 * @author	Andrea Marco Sartori
54
-	 * @param	Cerbero\Jobs\Job	$job
55
-	 * @return	void
56
-	 */
57
-	protected function callBefore($job)
58
-	{
59
-		$this->callIfExistsAndEnabled('before', [$job]);
60
-	}
50
+    /**
51
+     * Call the before method.
52
+     *
53
+     * @author	Andrea Marco Sartori
54
+     * @param	Cerbero\Jobs\Job	$job
55
+     * @return	void
56
+     */
57
+    protected function callBefore($job)
58
+    {
59
+        $this->callIfExistsAndEnabled('before', [$job]);
60
+    }
61 61
 
62
-	/**
63
-	 * Call and resolve depepndencies of a method if enabled.
64
-	 *
65
-	 * @author	Andrea Marco Sartori
66
-	 * @param	string	$method
67
-	 * @param	array	$parameters
68
-	 * @return	void
69
-	 */
70
-	private function callIfExistsAndEnabled($method, array $parameters = [])
71
-	{
72
-		if( ! $this->isEnabled()) return;
62
+    /**
63
+     * Call and resolve depepndencies of a method if enabled.
64
+     *
65
+     * @author	Andrea Marco Sartori
66
+     * @param	string	$method
67
+     * @param	array	$parameters
68
+     * @return	void
69
+     */
70
+    private function callIfExistsAndEnabled($method, array $parameters = [])
71
+    {
72
+        if( ! $this->isEnabled()) return;
73 73
 
74
-		if(method_exists($this, $method) && $this->{"{$method}IsEnabled"}())
75
-		{
76
-			$this->container->call([$this, $method], $parameters);
77
-		}
78
-	}
74
+        if(method_exists($this, $method) && $this->{"{$method}IsEnabled"}())
75
+        {
76
+            $this->container->call([$this, $method], $parameters);
77
+        }
78
+    }
79 79
 
80
-	/**
81
-	 * Determine whether the whole pipe has to be processed.
82
-	 *
83
-	 * @author	Andrea Marco Sartori
84
-	 * @return	boolean
85
-	 */
86
-	protected function isEnabled()
87
-	{
88
-		return true;
89
-	}
80
+    /**
81
+     * Determine whether the whole pipe has to be processed.
82
+     *
83
+     * @author	Andrea Marco Sartori
84
+     * @return	boolean
85
+     */
86
+    protected function isEnabled()
87
+    {
88
+        return true;
89
+    }
90 90
 
91
-	/**
92
-	 * Call the after method.
93
-	 *
94
-	 * @author	Andrea Marco Sartori
95
-	 * @param	mixed	$handled
96
-	 * @param	Cerbero\Jobs\Job	$job
97
-	 * @return	void
98
-	 */
99
-	protected function callAfter($handled, $job)
100
-	{
101
-		$this->callIfExistsAndEnabled('after', [$handled, $job]);
102
-	}
91
+    /**
92
+     * Call the after method.
93
+     *
94
+     * @author	Andrea Marco Sartori
95
+     * @param	mixed	$handled
96
+     * @param	Cerbero\Jobs\Job	$job
97
+     * @return	void
98
+     */
99
+    protected function callAfter($handled, $job)
100
+    {
101
+        $this->callIfExistsAndEnabled('after', [$handled, $job]);
102
+    }
103 103
 
104
-	/**
105
-	 * Determine whether the before method has to be processed.
106
-	 *
107
-	 * @author	Andrea Marco Sartori
108
-	 * @return	boolean
109
-	 */
110
-	protected function beforeIsEnabled()
111
-	{
112
-		return true;
113
-	}
104
+    /**
105
+     * Determine whether the before method has to be processed.
106
+     *
107
+     * @author	Andrea Marco Sartori
108
+     * @return	boolean
109
+     */
110
+    protected function beforeIsEnabled()
111
+    {
112
+        return true;
113
+    }
114 114
 
115
-	/**
116
-	 * Determine whether the after method has to be processed.
117
-	 *
118
-	 * @author	Andrea Marco Sartori
119
-	 * @return	boolean
120
-	 */
121
-	protected function afterIsEnabled()
122
-	{
123
-		return true;
124
-	}
115
+    /**
116
+     * Determine whether the after method has to be processed.
117
+     *
118
+     * @author	Andrea Marco Sartori
119
+     * @return	boolean
120
+     */
121
+    protected function afterIsEnabled()
122
+    {
123
+        return true;
124
+    }
125 125
 
126 126
 }
Please login to merge, or discard this patch.
src/Jobs/RegisterJob.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -5,32 +5,32 @@
 block discarded – undo
5 5
 
6 6
 class RegisterJob implements SelfHandling {
7 7
 
8
-	/**
9
-	 * @author	Andrea Marco Sartori
10
-	 * @var		array	$attributes	User attributes.
11
-	 */
12
-	public $attributes;
8
+    /**
9
+     * @author	Andrea Marco Sartori
10
+     * @var		array	$attributes	User attributes.
11
+     */
12
+    public $attributes;
13 13
 
14
-	/**
15
-	 * Create a new job instance.
16
-	 *
17
-	 * @return void
18
-	 */
19
-	public function __construct()
20
-	{
21
-		$fields = config('_auth.register.fields');
14
+    /**
15
+     * Create a new job instance.
16
+     *
17
+     * @return void
18
+     */
19
+    public function __construct()
20
+    {
21
+        $fields = config('_auth.register.fields');
22 22
 
23
-		$this->attributes = app('request')->only($fields);
24
-	}
23
+        $this->attributes = app('request')->only($fields);
24
+    }
25 25
 
26
-	/**
27
-	 * Execute the job.
28
-	 *
29
-	 * @return void
30
-	 */
31
-	public function handle(UserRepositoryInterface $user)
32
-	{
33
-		return $user->register($this->attributes);
34
-	}
26
+    /**
27
+     * Execute the job.
28
+     *
29
+     * @return void
30
+     */
31
+    public function handle(UserRepositoryInterface $user)
32
+    {
33
+        return $user->register($this->attributes);
34
+    }
35 35
 
36 36
 }
Please login to merge, or discard this patch.
src/Jobs/LogoutJob.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@
 block discarded – undo
5 5
 
6 6
 class LogoutJob implements SelfHandling {
7 7
 
8
-	/**
9
-	 * Execute the job.
10
-	 *
11
-	 * @return void
12
-	 */
13
-	public function handle(Guard $auth)
14
-	{
15
-		$auth->logout();
16
-	}
8
+    /**
9
+     * Execute the job.
10
+     *
11
+     * @return void
12
+     */
13
+    public function handle(Guard $auth)
14
+    {
15
+        $auth->logout();
16
+    }
17 17
 
18 18
 }
Please login to merge, or discard this patch.
src/Jobs/LoginJob.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -6,41 +6,41 @@
 block discarded – undo
6 6
 
7 7
 class LoginJob implements SelfHandling {
8 8
 
9
-	/**
10
-	 * @author	Andrea Marco Sartori
11
-	 * @var		array	$credentials	Credentials.
12
-	 */
13
-	public $credentials;
14
-
15
-	/**
16
-	 * @author	Andrea Marco Sartori
17
-	 * @var		boolean	$remember	Whether to remember the session.
18
-	 */
19
-	public $remember;
20
-
21
-	/**
22
-	 * Create a new job instance.
23
-	 *
24
-	 * @return void
25
-	 */
26
-	public function __construct()
27
-	{
28
-		$this->credentials = app('request')->only(config('_auth.login.fields'));
29
-
30
-		$this->remember = app('request')->get(config('_auth.login.remember_me'), false);
31
-	}
32
-
33
-	/**
34
-	 * Execute the job.
35
-	 *
36
-	 * @return void
37
-	 */
38
-	public function handle(Guard $auth)
39
-	{
40
-		if( ! $auth->attempt($this->credentials, $this->remember))
41
-		{
42
-			throw new DisplayException('auth::login.error');
43
-		}
44
-	}
9
+    /**
10
+     * @author	Andrea Marco Sartori
11
+     * @var		array	$credentials	Credentials.
12
+     */
13
+    public $credentials;
14
+
15
+    /**
16
+     * @author	Andrea Marco Sartori
17
+     * @var		boolean	$remember	Whether to remember the session.
18
+     */
19
+    public $remember;
20
+
21
+    /**
22
+     * Create a new job instance.
23
+     *
24
+     * @return void
25
+     */
26
+    public function __construct()
27
+    {
28
+        $this->credentials = app('request')->only(config('_auth.login.fields'));
29
+
30
+        $this->remember = app('request')->get(config('_auth.login.remember_me'), false);
31
+    }
32
+
33
+    /**
34
+     * Execute the job.
35
+     *
36
+     * @return void
37
+     */
38
+    public function handle(Guard $auth)
39
+    {
40
+        if( ! $auth->attempt($this->credentials, $this->remember))
41
+        {
42
+            throw new DisplayException('auth::login.error');
43
+        }
44
+    }
45 45
 
46 46
 }
Please login to merge, or discard this patch.
src/Jobs/RecoverJob.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -4,30 +4,30 @@
 block discarded – undo
4 4
 
5 5
 class RecoverJob implements SelfHandling {
6 6
 
7
-	/**
8
-	 * @author	Andrea Marco Sartori
9
-	 * @var		string	$email	Email input.
10
-	 */
11
-	public $email;
7
+    /**
8
+     * @author	Andrea Marco Sartori
9
+     * @var		string	$email	Email input.
10
+     */
11
+    public $email;
12 12
 
13
-	/**
14
-	 * Create a new job instance.
15
-	 *
16
-	 * @return void
17
-	 */
18
-	public function __construct($email)
19
-	{
20
-		$this->email = $email;
21
-	}
13
+    /**
14
+     * Create a new job instance.
15
+     *
16
+     * @return void
17
+     */
18
+    public function __construct($email)
19
+    {
20
+        $this->email = $email;
21
+    }
22 22
 
23
-	/**
24
-	 * Execute the job.
25
-	 *
26
-	 * @return void
27
-	 */
28
-	public function handle()
29
-	{
30
-		return str_random(10);
31
-	}
23
+    /**
24
+     * Execute the job.
25
+     *
26
+     * @return void
27
+     */
28
+    public function handle()
29
+    {
30
+        return str_random(10);
31
+    }
32 32
 
33 33
 }
Please login to merge, or discard this patch.
src/Jobs/ResetJob.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -7,43 +7,43 @@
 block discarded – undo
7 7
 
8 8
 class ResetJob implements SelfHandling {
9 9
 
10
-	/**
11
-	 * @author	Andrea Marco Sartori
12
-	 * @var		string	$password	Password input.
13
-	 */
14
-	public $password;
15
-
16
-	/**
17
-	 * @author	Andrea Marco Sartori
18
-	 * @var		string	$token	Reset token.
19
-	 */
20
-	public $token;
21
-
22
-	/**
23
-	 * Create a new job instance.
24
-	 *
25
-	 * @return void
26
-	 */
27
-	public function __construct($password, $token)
28
-	{
29
-		$this->password = $password;
30
-
31
-		$this->token = $token;
32
-	}
33
-
34
-	/**
35
-	 * Execute the job.
36
-	 *
37
-	 * @return void
38
-	 */
39
-	public function handle(UserRepositoryInterface $users, Hasher $hasher)
40
-	{
41
-		if( ! $user = $users->findByResetToken($this->token))
42
-		{
43
-			throw new DisplayException('auth::reset.error');
44
-		}
45
-
46
-		$users->resetPassword($user, $hasher->make($this->password));
47
-	}
10
+    /**
11
+     * @author	Andrea Marco Sartori
12
+     * @var		string	$password	Password input.
13
+     */
14
+    public $password;
15
+
16
+    /**
17
+     * @author	Andrea Marco Sartori
18
+     * @var		string	$token	Reset token.
19
+     */
20
+    public $token;
21
+
22
+    /**
23
+     * Create a new job instance.
24
+     *
25
+     * @return void
26
+     */
27
+    public function __construct($password, $token)
28
+    {
29
+        $this->password = $password;
30
+
31
+        $this->token = $token;
32
+    }
33
+
34
+    /**
35
+     * Execute the job.
36
+     *
37
+     * @return void
38
+     */
39
+    public function handle(UserRepositoryInterface $users, Hasher $hasher)
40
+    {
41
+        if( ! $user = $users->findByResetToken($this->token))
42
+        {
43
+            throw new DisplayException('auth::reset.error');
44
+        }
45
+
46
+        $users->resetPassword($user, $hasher->make($this->password));
47
+    }
48 48
 
49 49
 }
Please login to merge, or discard this patch.
src/AuthServiceProvider.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -9,62 +9,62 @@
 block discarded – undo
9 9
  */
10 10
 class AuthServiceProvider extends ServiceProvider {
11 11
 
12
-	/**
13
-	 * Boot up the package.
14
-	 *
15
-	 * @return void
16
-	 */
17
-	public function boot()
18
-	{
19
-		$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'auth');
12
+    /**
13
+     * Boot up the package.
14
+     *
15
+     * @return void
16
+     */
17
+    public function boot()
18
+    {
19
+        $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'auth');
20 20
 
21
-		$this->publishes([__DIR__.'/../config/_auth.php' => config_path('_auth.php')], 'config');
21
+        $this->publishes([__DIR__.'/../config/_auth.php' => config_path('_auth.php')], 'config');
22 22
 
23
-		$this->publishes([__DIR__.'/../database/migrations/' => database_path('migrations')], 'migration');
23
+        $this->publishes([__DIR__.'/../database/migrations/' => database_path('migrations')], 'migration');
24 24
 
25
-		$this->publishes([__DIR__.'/../resources/lang/' => base_path('resources/lang/vendor/auth')], 'lang');
25
+        $this->publishes([__DIR__.'/../resources/lang/' => base_path('resources/lang/vendor/auth')], 'lang');
26 26
 
27
-		include __DIR__.'/Http/routes.php';
28
-	}
27
+        include __DIR__.'/Http/routes.php';
28
+    }
29 29
 
30
-	/**
31
-	 * Register the service provider.
32
-	 *
33
-	 * @return void
34
-	 */
35
-	public function register()
36
-	{
37
-		$this->mergeConfigFrom(__DIR__.'/../config/_auth.php', 'auth');
30
+    /**
31
+     * Register the service provider.
32
+     *
33
+     * @return void
34
+     */
35
+    public function register()
36
+    {
37
+        $this->mergeConfigFrom(__DIR__.'/../config/_auth.php', 'auth');
38 38
 
39
-		$this->registerUserRepository();
39
+        $this->registerUserRepository();
40 40
 
41
-		$this->registerThrottler();
42
-	}
41
+        $this->registerThrottler();
42
+    }
43 43
 
44
-	/**
45
-	 * Register the user repository.
46
-	 *
47
-	 * @author	Andrea Marco Sartori
48
-	 * @return	void
49
-	 */
50
-	private function registerUserRepository()
51
-	{
52
-		$userRepo = 'Cerbero\Auth\Repositories\EloquentUserRepository';
44
+    /**
45
+     * Register the user repository.
46
+     *
47
+     * @author	Andrea Marco Sartori
48
+     * @return	void
49
+     */
50
+    private function registerUserRepository()
51
+    {
52
+        $userRepo = 'Cerbero\Auth\Repositories\EloquentUserRepository';
53 53
 
54
-		$this->app->bind('Cerbero\Auth\Repositories\UserRepositoryInterface', $userRepo);
55
-	}
54
+        $this->app->bind('Cerbero\Auth\Repositories\UserRepositoryInterface', $userRepo);
55
+    }
56 56
 
57
-	/**
58
-	 * Register the login throttling service.
59
-	 *
60
-	 * @author	Andrea Marco Sartori
61
-	 * @return	void
62
-	 */
63
-	private function registerThrottler()
64
-	{
65
-		$throttler = 'Cerbero\Auth\Services\Throttling\CachingThrottler';
57
+    /**
58
+     * Register the login throttling service.
59
+     *
60
+     * @author	Andrea Marco Sartori
61
+     * @return	void
62
+     */
63
+    private function registerThrottler()
64
+    {
65
+        $throttler = 'Cerbero\Auth\Services\Throttling\CachingThrottler';
66 66
 
67
-		$this->app->bind('Cerbero\Auth\Services\Throttling\ThrottlerInterface', $throttler);
68
-	}
67
+        $this->app->bind('Cerbero\Auth\Services\Throttling\ThrottlerInterface', $throttler);
68
+    }
69 69
 
70 70
 }
Please login to merge, or discard this patch.
config/_auth.php 1 patch
Indentation   +98 added lines, -98 removed lines patch added patch discarded remove patch
@@ -2,144 +2,144 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
 
5
-	# prefix for your authentication routes e.g. auth/login
6
-	'routes_prefix' => 'auth',
5
+    # prefix for your authentication routes e.g. auth/login
6
+    'routes_prefix' => 'auth',
7 7
 
8
-	# the auth controller, you may use your own by extending the default one
9
-	'controller' => 'Cerbero\Auth\Http\Controllers\AuthController',
8
+    # the auth controller, you may use your own by extending the default one
9
+    'controller' => 'Cerbero\Auth\Http\Controllers\AuthController',
10 10
 
11
-	# prevent spam and forms being submitted by bots
12
-	'honeypot' => [
11
+    # prevent spam and forms being submitted by bots
12
+    'honeypot' => [
13 13
 
14
-		# do you want to turn honeypot on?
15
-		'enabled' => true,
14
+        # do you want to turn honeypot on?
15
+        'enabled' => true,
16 16
 
17
-		# the name of the fake field to put in your views
18
-		# remember to hide this field with CSS
19
-		'field' => 'mobile',
20
-	],
17
+        # the name of the fake field to put in your views
18
+        # remember to hide this field with CSS
19
+        'field' => 'mobile',
20
+    ],
21 21
 
22
-	'login' => [
22
+    'login' => [
23 23
 
24
-		# route where the user logs in
25
-		'route' => 'login',
24
+        # route where the user logs in
25
+        'route' => 'login',
26 26
 
27
-		# the name of the route where the user is redirected after logging in
28
-		'redirect' => 'dashboard',
27
+        # the name of the route where the user is redirected after logging in
28
+        'redirect' => 'dashboard',
29 29
 
30
-		# the view used to display the login page
31
-		'view' => 'auth.login',
30
+        # the view used to display the login page
31
+        'view' => 'auth.login',
32 32
 
33
-		# the rules to validate the login fields
34
-		'rules' => [
35
-			'email' => 'required|email',
36
-			'password' => 'required',
37
-		],
33
+        # the rules to validate the login fields
34
+        'rules' => [
35
+            'email' => 'required|email',
36
+            'password' => 'required',
37
+        ],
38 38
 
39
-		# the fields of the login form
40
-		'fields' => ['email', 'password'],
39
+        # the fields of the login form
40
+        'fields' => ['email', 'password'],
41 41
 
42
-		# the name of the "Remember me" checkbox, set null if not present
43
-		'remember_me' => 'remember',
42
+        # the name of the "Remember me" checkbox, set null if not present
43
+        'remember_me' => 'remember',
44 44
 
45
-		# prevent too many wrong login attempts
46
-		'throttling' => [
45
+        # prevent too many wrong login attempts
46
+        'throttling' => [
47 47
 
48
-			# do you want to turn throttling on?
49
-			'enabled' => true,
48
+            # do you want to turn throttling on?
49
+            'enabled' => true,
50 50
 
51
-			# the number of allowed login attempts
52
-			'max_attempts' => 5,
51
+            # the number of allowed login attempts
52
+            'max_attempts' => 5,
53 53
 
54
-			# the number of seconds to wait before the next attempt
55
-			'delay' => 60,
56
-		],
57
-	],
54
+            # the number of seconds to wait before the next attempt
55
+            'delay' => 60,
56
+        ],
57
+    ],
58 58
 
59
-	'register' => [
59
+    'register' => [
60 60
 
61
-		# route where the user registers his account
62
-		'route' => 'register',
61
+        # route where the user registers his account
62
+        'route' => 'register',
63 63
 
64
-		# the name of the route where the user is redirected after logging in
65
-		'redirect' => 'login.index',
64
+        # the name of the route where the user is redirected after logging in
65
+        'redirect' => 'login.index',
66 66
 
67
-		# the view used to display the registration page
68
-		'view' => 'auth.register',
67
+        # the view used to display the registration page
68
+        'view' => 'auth.register',
69 69
 
70
-		# the rules to validate the registration fields
71
-		'rules' => [
72
-			'email' => 'required|email|unique:users',
73
-			'password' => 'required|min:6|confirmed',
74
-		],
70
+        # the rules to validate the registration fields
71
+        'rules' => [
72
+            'email' => 'required|email|unique:users',
73
+            'password' => 'required|min:6|confirmed',
74
+        ],
75 75
 
76
-		# the fields of the registration form
77
-		'fields' => ['email', 'password'],
76
+        # the fields of the registration form
77
+        'fields' => ['email', 'password'],
78 78
 
79
-		# do you want to log in the user after his registration?
80
-		'login_after_registering' => false,
79
+        # do you want to log in the user after his registration?
80
+        'login_after_registering' => false,
81 81
 
82
-		'email' => [
82
+        'email' => [
83 83
 
84
-			# do you want to send a welcome email?
85
-			'send' => true,
84
+            # do you want to send a welcome email?
85
+            'send' => true,
86 86
 
87
-			# do you want to enqueue email sending?
88
-			'queue' => false,
87
+            # do you want to enqueue email sending?
88
+            'queue' => false,
89 89
 
90
-			# the view used to display the welcome email
91
-			'view' => 'emails.register',
90
+            # the view used to display the welcome email
91
+            'view' => 'emails.register',
92 92
 
93
-			# do you want to generate a password for the user?
94
-			# you can show it in the welcome email by using {{ $password }}
95
-			'generate_password_for_user' => false,
96
-		],
97
-	],
93
+            # do you want to generate a password for the user?
94
+            # you can show it in the welcome email by using {{ $password }}
95
+            'generate_password_for_user' => false,
96
+        ],
97
+    ],
98 98
 
99
-	'recover' => [
99
+    'recover' => [
100 100
 
101
-		# route where the user recovers his password
102
-		'route' => 'recover',
101
+        # route where the user recovers his password
102
+        'route' => 'recover',
103 103
 
104
-		# the view used to display the password recovery page
105
-		'view' => 'auth.recover',
104
+        # the view used to display the password recovery page
105
+        'view' => 'auth.recover',
106 106
 
107
-		# the rules to validate the recovery fields
108
-		'rules' => [
109
-			'email' => 'required|email|exists:users,email'
110
-		],
107
+        # the rules to validate the recovery fields
108
+        'rules' => [
109
+            'email' => 'required|email|exists:users,email'
110
+        ],
111 111
 
112
-		'email' => [
112
+        'email' => [
113 113
 
114
-			# the view used to display the recovery email
115
-			'view' => 'emails.recover',
114
+            # the view used to display the recovery email
115
+            'view' => 'emails.recover',
116 116
 
117
-			# do you want to enqueue email sending?
118
-			'queue' => false,
119
-		],
120
-	],
117
+            # do you want to enqueue email sending?
118
+            'queue' => false,
119
+        ],
120
+    ],
121 121
 
122
-	'reset' => [
122
+    'reset' => [
123 123
 
124
-		# route where the user resets his password
125
-		'route' => 'reset',
124
+        # route where the user resets his password
125
+        'route' => 'reset',
126 126
 
127
-		# the view used to display the password reset page
128
-		'view' => 'auth.reset',
127
+        # the view used to display the password reset page
128
+        'view' => 'auth.reset',
129 129
 
130
-		# the rules to validate the reset fields
131
-		'rules' => [
132
-			'password' => 'required|min:6|confirmed'
133
-		],
134
-	],
130
+        # the rules to validate the reset fields
131
+        'rules' => [
132
+            'password' => 'required|min:6|confirmed'
133
+        ],
134
+    ],
135 135
 
136
-	'logout' => [
136
+    'logout' => [
137 137
 
138
-		# route where the user logs out
139
-		'route' => 'logout',
138
+        # route where the user logs out
139
+        'route' => 'logout',
140 140
 
141
-		# the name of the route where the user is redirected after logging in
142
-		'redirect' => 'home',
143
-	],
141
+        # the name of the route where the user is redirected after logging in
142
+        'redirect' => 'home',
143
+    ],
144 144
 
145 145
 ];
Please login to merge, or discard this patch.