PHP Class Cviebrock\EloquentTaggable\Models\Tag

Inheritance: extends Illuminate\Database\Eloquent\Model
Mostra file Open project: cviebrock/eloquent-taggable Class Usage Examples

Protected Properties

Property Type Description
$fillable array The attributes that are mass assignable.
$primaryKey string The primary key for the model.
$table string The table associated with the model.

Public Methods

Method Description
__toString ( ) : string Convert the model to its string representation.
setNameAttribute ( string $value ) Set the name attribute on the model.

Method Details

__toString() public method

Convert the model to its string representation.
public __toString ( ) : string
return string

setNameAttribute() public method

Set the name attribute on the model.
public setNameAttribute ( string $value )
$value string

Property Details

$fillable protected_oe property

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

$primaryKey protected_oe property

The primary key for the model.
protected string $primaryKey
return string

$table protected_oe property

The table associated with the model.
protected string $table
return string