Skip to content

Commit 4ba1a71

Browse files
committed
Merge branch '5.3'
2 parents aa0351a + 03116ef commit 4ba1a71

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

authentication.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,14 @@ When a user is successfully authenticated, they will be redirected to the `/home
7575

7676
protected $redirectTo = '/';
7777

78-
When a user is not successfully authenticated, they will be automatically redirected back to the login form.
78+
If the redirect path needs custom generation logic you may define a `redirectTo` method instead of a `redirectTo` property:
79+
80+
protected function redirectTo()
81+
{
82+
//
83+
}
84+
85+
> {tip} `redirectTo` method has higher priority than `redirectTo` attribute.
7986
8087
#### Username Customization
8188

migrations.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ Command | Description
227227
`$table->mediumInteger('numbers');` | MEDIUMINT equivalent for the database.
228228
`$table->mediumText('description');` | MEDIUMTEXT equivalent for the database.
229229
`$table->morphs('taggable');` | Adds unsigned INTEGER `taggable_id` and STRING `taggable_type`.
230-
`$table->nullableTimestamps();` | Same as `timestamps()`.
230+
`$table->nullableMorphs('taggable');` | Nullable versions of the `morphs()` columns.
231+
`$table->nullableTimestamps();` | Nullable versions of the `timestamps()` columns.
231232
`$table->rememberToken();` | Adds `remember_token` as VARCHAR(100) NULL.
232233
`$table->smallIncrements('id');` | Incrementing ID (primary key) using a "UNSIGNED SMALL INTEGER" equivalent.
233234
`$table->smallInteger('votes');` | SMALLINT equivalent for the database.
@@ -295,7 +296,7 @@ We could also modify a column to be nullable:
295296
$table->string('name', 50)->nullable()->change();
296297
});
297298

298-
> {note} The following column types can not be "changed": char, double, enum, mediumInteger, timestamp, tinyInteger, ipAddress, json, jsonb, macAddress, mediumIncrements, morphs, nullableTimestamps, softDeletes, timeTz, timestampTz, timestamps, timestampsTz, unsignedMediumInteger, unsignedTinyInteger, uuid.
299+
> {note} The following column types can not be "changed": char, double, enum, mediumInteger, timestamp, tinyInteger, ipAddress, json, jsonb, macAddress, mediumIncrements, morphs, nullableMorphs, nullableTimestamps, softDeletes, timeTz, timestampTz, timestamps, timestampsTz, unsignedMediumInteger, unsignedTinyInteger, uuid.
299300
300301
<a name="renaming-columns"></a>
301302
#### Renaming Columns

0 commit comments

Comments
 (0)