public function generateSlug()
    {
        $strategy = $this->slugStrategy();

        if ($strategy == 'uuid') {
            $this->generateIdSlug();
        } elseif ($strategy != 'id') {
            $this->generateTitleSlug((array) $strategy);
        }
    }
public function generateSlug()
    {
        $strategy = $this->slugStrategy();

        if ($strategy == 'uuid') {
            $this->generateIdSlug();
        } elseif ($strategy != 'id') {
            $this->generateTitleSlug((array) $strategy);
        }
    }
public function generateSlug ( ) { $ strategy = $ this -> slugStrategy ( ) ; if ( $ strategy == 'uuid' ) { $ this -> generateIdSlug ( ) ; } elseif ( $ strategy != 'id' ) { $ this -> generateTitleSlug ( ( array ) $ strategy ) ; } }
Generate the slug for the model based on the model's slug strategy.
Generate the slug for the model based on the model s slug strategy .