PHP Class Cartalyst\Tags\IlluminateTag

Inheritance: extends Illuminate\Database\Eloquent\Model
Afficher le fichier Open project: cartalyst/tags Class Usage Examples

Méthodes publiques

Свойство Type Description
$timestamps

Protected Properties

Свойство Type Description
$fillable
$table
$taggedModel string The tagged entities model.

Méthodes publiques

Méthode Description
delete ( )
getTaggedModel ( ) : string Returns the tagged entities model.
scopeName ( Builder $query, string $name ) : Builder Finds a tag by its name.
scopeSlug ( Builder $query, string $slug ) : Builder Finds a tag by its slug.
setTaggedModel ( string $taggedModel ) : void Sets the tagged entities model.
taggable ( ) : Illuminate\Database\Eloquent\Relations\MorphTo Returns the polymorphic relationship.
tagged ( ) : Illuminate\Database\Eloquent\Relations\HasMany Returns this tag tagged entities.

Method Details

delete() public méthode

public delete ( )

getTaggedModel() public static méthode

Returns the tagged entities model.
public static getTaggedModel ( ) : string
Résultat string

scopeName() public méthode

Finds a tag by its name.
public scopeName ( Builder $query, string $name ) : Builder
$query Illuminate\Database\Eloquent\Builder
$name string
Résultat Illuminate\Database\Eloquent\Builder

scopeSlug() public méthode

Finds a tag by its slug.
public scopeSlug ( Builder $query, string $slug ) : Builder
$query Illuminate\Database\Eloquent\Builder
$slug string
Résultat Illuminate\Database\Eloquent\Builder

setTaggedModel() public static méthode

Sets the tagged entities model.
public static setTaggedModel ( string $taggedModel ) : void
$taggedModel string
Résultat void

taggable() public méthode

Returns the polymorphic relationship.
public taggable ( ) : Illuminate\Database\Eloquent\Relations\MorphTo
Résultat Illuminate\Database\Eloquent\Relations\MorphTo

tagged() public méthode

Returns this tag tagged entities.
public tagged ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

Property Details

$fillable protected_oe property

protected $fillable

$table protected_oe property

protected $table

$taggedModel protected_oe static_oe property

The tagged entities model.
protected static string $taggedModel
Résultat string

$timestamps public_oe property

public $timestamps