Laravel auto casts the id column to int for us

This commit is contained in:
James Brooks
2016-01-07 14:47:39 +00:00
parent 83d6011345
commit 45c6c37c65
10 changed files with 0 additions and 10 deletions

View File

@@ -44,7 +44,6 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
* @var string[]
*/
protected $casts = [
'id' => 'int',
'username' => 'string',
'email' => 'string',
'google_2fa_secret' => 'string',