Laravel Substitua o espaço branco por traço

 $string = preg_replace("/[\s_]/", "-", $slug);
Zany Zebra