PHP Class app\Business

Inheritance: extends Illuminate\Database\Eloquent\Model
Show file Open project: ant-vel/antVel Class Usage Examples

Public Properties

Property Type Description
$incrementing
$primaryKey
$timestamps

Protected Properties

Property Type Description
$fillable array The attributes that are mass assignable.
$table string The database table used by the model.

Public Methods

Method Description
create ( array $attr = [], $normal = true )
getAgeAttribute ( )
getFullNameAttribute ( )
getHasPhoneAttribute ( )
user ( ) : belongsTo Get business user.

Method Details

create() public static method

public static create ( array $attr = [], $normal = true )
$attr array

getAgeAttribute() public method

public getAgeAttribute ( )

getFullNameAttribute() public method

getHasPhoneAttribute() public method

user() public method

Get business user.
public user ( ) : belongsTo
return belongsTo

Property Details

$fillable protected property

The attributes that are mass assignable.
protected array $fillable
return array

$incrementing public property

public $incrementing

$primaryKey public property

public $primaryKey

$table protected property

The database table used by the model.
protected string $table
return string

$timestamps public property

public $timestamps