PHP Class Cviebrock\EloquentSluggable\Tests\Models\PostWithRelation

A test model used for the relationship tests.
Inheritance: extends Cviebrock\EloquentSluggable\Tests\Models\Post
Show file Open project: cviebrock/eloquent-sluggable Class Usage Examples

Public Methods

Method Description
author ( ) : BelongsTo Relation to Author model.
sluggable ( ) : array Return the sluggable configuration array for this model.

Method Details

author() public method

Relation to Author model.
public author ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

sluggable() public method

Return the sluggable configuration array for this model.
public sluggable ( ) : array
return array