classes/Controllers/Base.php
public function detailPath($class)
    {
        // Remove Decoy from the class
        $path = str_replace('Bkwld\Decoy\Controllers\\', '', $class, $is_decoy);

        // Remove the App controller prefix
        $path = str_replace('App\Http\Controllers\\', '', $path);

        // Break up all the remainder of the class and de-study them (which is what
        // title() does)
        $parts = explode('\\', $path);

        foreach ($parts as &$part) {
            $part = str_replace(' ', '_', strtolower($this->title($part)));
        }

        $path = implode('.', $parts);

        // If the controller is part of Decoy, add it to the path
        if ($is_decoy) {
            $path = 'decoy::'.$path;
        }

        // Done
        return $path.'.edit';
    }
public function detailPath($class)
    {
        // Remove Decoy from the class
        $path = str_replace('Bkwld\Decoy\Controllers\\', '', $class, $is_decoy);

        // Remove the App controller prefix
        $path = str_replace('App\Http\Controllers\\', '', $path);

        // Break up all the remainder of the class and de-study them (which is what
        // title() does)
        $parts = explode('\\', $path);

        foreach ($parts as &$part) {
            $part = str_replace(' ', '_', strtolower($this->title($part)));
        }

        $path = implode('.', $parts);

        // If the controller is part of Decoy, add it to the path
        if ($is_decoy) {
            $path = 'decoy::'.$path;
        }

        // Done
        return $path.'.edit';
    }
public function detailPath ( $ class ) { // Remove Decoy from the class $ path = str_replace ( 'Bkwld\Decoy\Controllers\\' , '' , $ class , $ is_decoy ) ; // Remove the App controller prefix $ path = str_replace ( 'App\Http\Controllers\\' , '' , $ path ) ; // Break up all the remainder of the class and de-study them (which is what // title() does) $ parts = explode ( '\\' , $ path ) ; foreach ( $ parts as & $ part ) { $ part = str_replace ( ' ' , '_' , strtolower ( $ this -> title ( $ part ) ) ) ; } $ path = implode ( '.' , $ parts ) ; // If the controller is part of Decoy, add it to the path if ( $ is_decoy ) { $ path = 'decoy::' . $ path ; } // Done return $ path . '.edit' ; }
Get the directory for the detail views.  It's based off the controller name.
This is basically a conversion to snake case from studyly case

@param  string $class ex: 'Admin\NewsController'
@return string ex: admins.edit or car_lovers.edit
Get the directory for the detail views . It s based off the controller name . This is basically a conversion to snake case from studyly case