PHP Class Cviebrock\EloquentSluggable\SluggableObserver

Afficher le fichier Open project: cviebrock/eloquent-sluggable

Méthodes publiques

Méthode Description
__construct ( SlugService $slugService, Illuminate\Contracts\Events\Dispatcher $events ) SluggableObserver constructor.
saving ( Model $model ) : boolean | null

Méthodes protégées

Méthode Description
fireSluggedEvent ( Model $model, string $status ) : void Fire the namespaced post-validation event.
fireSluggingEvent ( Model $model, string $event ) : mixed Fire the namespaced validating event.
generateSlug ( Model $model, string $event ) : boolean | null

Method Details

__construct() public méthode

SluggableObserver constructor.
public __construct ( SlugService $slugService, Illuminate\Contracts\Events\Dispatcher $events )
$slugService Cviebrock\EloquentSluggable\Services\SlugService
$events Illuminate\Contracts\Events\Dispatcher

fireSluggedEvent() protected méthode

Fire the namespaced post-validation event.
protected fireSluggedEvent ( Model $model, string $status ) : void
$model Illuminate\Database\Eloquent\Model
$status string
Résultat void

fireSluggingEvent() protected méthode

Fire the namespaced validating event.
protected fireSluggingEvent ( Model $model, string $event ) : mixed
$model Illuminate\Database\Eloquent\Model
$event string
Résultat mixed

generateSlug() protected méthode

protected generateSlug ( Model $model, string $event ) : boolean | null
$model Illuminate\Database\Eloquent\Model
$event string
Résultat boolean | null

saving() public méthode

public saving ( Model $model ) : boolean | null
$model Illuminate\Database\Eloquent\Model
Résultat boolean | null