"라라벨 User.php"의 두 판 사이의 차이

잔글 (Jmnote님이 라라벨 User 문서를 라라벨 User.php 문서로 이동했습니다)
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(같은 사용자의 중간 판 하나는 보이지 않습니다)
2번째 줄: 2번째 줄:


==App==
==App==
<source lang='php'>
<syntaxhighlight lang='php'>
<?php
<?php


22번째 줄: 22번째 줄:
     ];
     ];
}
}
</source>
</syntaxhighlight>


==Illuminate\Foundation\Auth==
==Illuminate\Foundation\Auth==
<source lang='php'>
<syntaxhighlight lang='php'>
<?php
<?php


45번째 줄: 45번째 줄:
     use Authenticatable, Authorizable, CanResetPassword;
     use Authenticatable, Authorizable, CanResetPassword;
}
}
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
53번째 줄: 53번째 줄:
* [[라라벨 Model]]
* [[라라벨 Model]]


==참고 자료==
==참고==
* https://github.com/laravel/laravel/blob/master/app/User.php
* https://github.com/laravel/laravel/blob/master/app/User.php
* https://github.com/laravel/framework/blob/master/src/Illuminate/Foundation/Auth/User.php
* https://github.com/laravel/framework/blob/master/src/Illuminate/Foundation/Auth/User.php

2020년 11월 2일 (월) 02:57 기준 최신판

라라벨 User

1 App[ | ]

<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;

    protected $fillable = [
        'name', 'email', 'password',
    ];

    protected $hidden = [
        'password', 'remember_token',
    ];
}

2 Illuminate\Foundation\Auth[ | ]

<?php

namespace Illuminate\Foundation\Auth;

use Illuminate\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;

class User extends Model implements
    AuthenticatableContract,
    AuthorizableContract,
    CanResetPasswordContract
{
    use Authenticatable, Authorizable, CanResetPassword;
}

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}