Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
<?php
class
UserDefinition
{
/**
* Username definition
* @return FieldDefinition
*/
public
function
username
(
)
{
return
FieldDefinition
::
builder
(
)
->
type
(
"string"
)
->
length
(
32
)
->
default
(
null
)
->
nullable
(
function
(
)
{
// some logic
}
)
;
}
}