@@ -135,7 +135,9 @@ This package provides a method to send an e-mail with a link containing the veri
135
135
By default the package will use the ` from ` and ` name ` values defined into the
136
136
` config/mail.php ` file:
137
137
138
+ ``` php
138
139
'from' => ['address' => '', 'name' => ''],
140
+ ```
139
141
140
142
If you want to override the values, simply set the ` $from ` and (optional)
141
143
` $name ` parameters.
@@ -440,36 +442,35 @@ Edit the `app\Http\Controllers\Auth\RegisterController.php` file.
440
442
|
441
443
*/
442
444
443
-
444
445
use RegistersUsers;
445
446
446
447
use VerifiesUsers;
447
448
448
449
/**
449
- * Where to redirect users after registration.
450
- *
451
- * @var string
452
- */
450
+ * Where to redirect users after registration.
451
+ *
452
+ * @var string
453
+ */
453
454
protected $redirectTo = '/home';
454
455
455
- /**
456
- * Create a new controller instance.
457
- *
458
- * @return void
459
- */
456
+ /**
457
+ * Create a new controller instance.
458
+ *
459
+ * @return void
460
+ */
460
461
public function __construct()
461
462
{
462
463
// Based on the workflow you need, you may update and customize the following lines.
463
464
464
465
$this->middleware('guest', ['except' => ['getVerification', 'getVerificationError']]);
465
466
}
466
467
467
- /**
468
- * Get a validator for an incoming registration request.
469
- *
470
- * @param array $data
471
- * @return \Illuminate\Contracts\Validation\Validator
472
- */
468
+ /**
469
+ * Get a validator for an incoming registration request.
470
+ *
471
+ * @param array $data
472
+ * @return \Illuminate\Contracts\Validation\Validator
473
+ */
473
474
protected function validator(array $data)
474
475
{
475
476
return Validator::make($data, [
@@ -480,11 +481,11 @@ Edit the `app\Http\Controllers\Auth\RegisterController.php` file.
480
481
}
481
482
482
483
/**
483
- * Create a new user instance after a valid registration.
484
- *
485
- * @param array $data
486
- * @return User
487
- */
484
+ * Create a new user instance after a valid registration.
485
+ *
486
+ * @param array $data
487
+ * @return User
488
+ */
488
489
protected function create(array $data)
489
490
{
490
491
return User::create([
@@ -495,11 +496,11 @@ Edit the `app\Http\Controllers\Auth\RegisterController.php` file.
495
496
}
496
497
497
498
/**
498
- * Handle a registration request for the application.
499
- *
500
- * @param \Illuminate\Http\Request $request
501
- * @return \Illuminate\Http\Response
502
- */
499
+ * Handle a registration request for the application.
500
+ *
501
+ * @param \Illuminate\Http\Request $request
502
+ * @return \Illuminate\Http\Response
503
+ */
503
504
public function register(Request $request)
504
505
{
505
506
$this->validator($request->all())->validate();
@@ -517,7 +518,6 @@ Edit the `app\Http\Controllers\Auth\RegisterController.php` file.
517
518
return $this->registered($request, $user)
518
519
?: redirect($this->redirectPath());
519
520
}
520
-
521
521
}
522
522
```
523
523
0 commit comments