Created
May 29, 2022 00:13
-
-
Save agungprsty/b34fcd1f506517113d5fa1177b17cb0f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use App\Traits\Uuids; | |
class User extends Model | |
{ | |
use Uuids; | |
/** | |
* The attributes that are mass assignable. | |
* | |
* @var string[] | |
*/ | |
protected $fillable = [ | |
'name', 'email', | |
]; | |
/** | |
* The attributes that aren't mass assignable. | |
* | |
* @var array | |
*/ | |
protected $guarded = ['uuid']; | |
/** | |
* The attributes excluded from the model's JSON form. | |
* | |
* @var string[] | |
*/ | |
protected $hidden = [ | |
'password', | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment