RainLab\Blog\Models\Category::beforeValidate PHP 메소드

beforeValidate() 공개 메소드

public beforeValidate ( )
    public function beforeValidate()
    {
        // Generate a URL slug for this model
        if (!$this->exists && !$this->slug) {
            $this->slug = Str::slug($this->name);
        }
    }