Свойство | 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. |
Méthode | Description | |
---|---|---|
getProjectCountAttribute ( ) : integer | Define a accessor for the count of projects. | |
projects ( ) : Illuminate\Database\Eloquent\Relations\HasMany | Has many relationship. |
public getProjectCountAttribute ( ) : integer | ||
Résultat | integer |
public projects ( ) : Illuminate\Database\Eloquent\Relations\HasMany | ||
Résultat | Illuminate\Database\Eloquent\Relations\HasMany |
protected array $appends | ||
Résultat | array |
protected array $casts | ||
Résultat | array |
protected array $fillable | ||
Résultat | array |