Skip to content

Commit 1f2715f

Browse files
committed
Documentation
1 parent cee64b9 commit 1f2715f

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ This package provides a method to send an e-mail with a link containing the veri
135135
By default the package will use the `from` and `name` values defined into the
136136
`config/mail.php` file:
137137

138+
```php
138139
'from' => ['address' => '', 'name' => ''],
140+
```
139141

140142
If you want to override the values, simply set the `$from` and (optional)
141143
`$name` parameters.
@@ -440,36 +442,35 @@ Edit the `app\Http\Controllers\Auth\RegisterController.php` file.
440442
|
441443
*/
442444

443-
444445
use RegistersUsers;
445446

446447
use VerifiesUsers;
447448

448449
/**
449-
* Where to redirect users after registration.
450-
*
451-
* @var string
452-
*/
450+
* Where to redirect users after registration.
451+
*
452+
* @var string
453+
*/
453454
protected $redirectTo = '/home';
454455

455-
/**
456-
* Create a new controller instance.
457-
*
458-
* @return void
459-
*/
456+
/**
457+
* Create a new controller instance.
458+
*
459+
* @return void
460+
*/
460461
public function __construct()
461462
{
462463
// Based on the workflow you need, you may update and customize the following lines.
463464

464465
$this->middleware('guest', ['except' => ['getVerification', 'getVerificationError']]);
465466
}
466467

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+
*/
473474
protected function validator(array $data)
474475
{
475476
return Validator::make($data, [
@@ -480,11 +481,11 @@ Edit the `app\Http\Controllers\Auth\RegisterController.php` file.
480481
}
481482

482483
/**
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+
*/
488489
protected function create(array $data)
489490
{
490491
return User::create([
@@ -495,11 +496,11 @@ Edit the `app\Http\Controllers\Auth\RegisterController.php` file.
495496
}
496497

497498
/**
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+
*/
503504
public function register(Request $request)
504505
{
505506
$this->validator($request->all())->validate();
@@ -517,7 +518,6 @@ Edit the `app\Http\Controllers\Auth\RegisterController.php` file.
517518
return $this->registered($request, $user)
518519
?: redirect($this->redirectPath());
519520
}
520-
521521
}
522522
```
523523

0 commit comments

Comments
 (0)