PHP Class Cartalyst\Tags\IlluminateTag

Inheritance: extends Illuminate\Database\Eloquent\Model
Show file Open project: cartalyst/tags Class Usage Examples

Public Properties

Property Type Description
$timestamps

Protected Properties

Property Type Description
$fillable
$table
$taggedModel string The tagged entities model.

Public Methods

Method 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 method

public delete ( )

getTaggedModel() public static method

Returns the tagged entities model.
public static getTaggedModel ( ) : string
return string

scopeName() public method

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

scopeSlug() public method

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

setTaggedModel() public static method

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

taggable() public method

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

tagged() public method

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

Property Details

$fillable protected property

protected $fillable

$table protected property

protected $table

$taggedModel protected static property

The tagged entities model.
protected static string $taggedModel
return string

$timestamps public property

public $timestamps