classes/Routing/UrlGenerator.php
public function slugController($controller)
    {
        // Get the controller name
        $controller = preg_replace('#^('.preg_quote('Bkwld\Decoy\Controllers\\')
            .'|'.preg_quote('App\Http\Controllers\Admin\\').')#', '', $controller);

        // Convert study caps to dashes
        $controller = Str::snake($controller, '-');

        // Done
        return $controller;
    }
public function slugController($controller)
    {
        // Get the controller name
        $controller = preg_replace('#^('.preg_quote('Bkwld\Decoy\Controllers\\')
            .'|'.preg_quote('App\Http\Controllers\Admin\\').')#', '', $controller);

        // Convert study caps to dashes
        $controller = Str::snake($controller, '-');

        // Done
        return $controller;
    }
public function slugController ( $ controller ) { // Get the controller name $ controller = preg_replace ( '#^(' . preg_quote ( 'Bkwld\Decoy\Controllers\\' ) . '|' . preg_quote ( 'App\Http\Controllers\Admin\\' ) . ')#' , '' , $ controller ) ; // Convert study caps to dashes $ controller = Str :: snake ( $ controller , '-' ) ; // Done return $ controller ; }
Convert a controller to how it is referenced in a url

@param  string $controller ex: Admin\ArticlesAreCoolController
@return string ex: articles-are-cool
Convert a controller to how it is referenced in a url