mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Narrow down array types (#6497)
This commit is contained in:
parent
980ef58fdd
commit
8b67958f49
@ -15,7 +15,7 @@ class User extends Authenticatable
|
|||||||
/**
|
/**
|
||||||
* The attributes that are mass assignable.
|
* The attributes that are mass assignable.
|
||||||
*
|
*
|
||||||
* @var array<int, string>
|
* @var list<string>
|
||||||
*/
|
*/
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'name',
|
'name',
|
||||||
@ -26,7 +26,7 @@ class User extends Authenticatable
|
|||||||
/**
|
/**
|
||||||
* The attributes that should be hidden for serialization.
|
* The attributes that should be hidden for serialization.
|
||||||
*
|
*
|
||||||
* @var array<int, string>
|
* @var list<string>
|
||||||
*/
|
*/
|
||||||
protected $hidden = [
|
protected $hidden = [
|
||||||
'password',
|
'password',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user