Property | Type | Description | |
---|---|---|---|
$appends | array | Additional attributes to include in the JSON representation. | |
$casts | array | The attributes that should be casted to native types. | |
$fillable | array | The attributes that are mass assignable. | |
$hidden | array | The attributes excluded from the model's JSON form. |
Method | Description | |
---|---|---|
getProjectCountAttribute ( ) : integer | Define a accessor for the count of projects. | |
projects ( ) : Illuminate\Database\Eloquent\Relations\HasMany | Has many relationship. |
public getProjectCountAttribute ( ) : integer | ||
return | integer |
public projects ( ) : Illuminate\Database\Eloquent\Relations\HasMany | ||
return | Illuminate\Database\Eloquent\Relations\HasMany |
protected array $appends | ||
return | array |
protected array $casts | ||
return | array |
protected array $fillable | ||
return | array |