Laralib\L5scaffold\Makes\MakerTrait::getPath PHP Method

getPath() protected method

Get the path to where we should store the controller.
protected getPath ( $file_name, string $path = 'controller' ) : string
$file_name
$path string
return string
    protected function getPath($file_name, $path = 'controller')
    {
        if ($path == "controller") {
            return './app/Http/Controllers/' . $file_name . '.php';
        } elseif ($path == "model") {
            return './app/' . $file_name . '.php';
        } elseif ($path == "seed") {
            return './database/seeds/' . $file_name . '.php';
        } elseif ($path == "view-index") {
            return './resources/views/' . $file_name . '/index.blade.php';
        } elseif ($path == "view-edit") {
            return './resources/views/' . $file_name . '/edit.blade.php';
        } elseif ($path == "view-show") {
            return './resources/views/' . $file_name . '/show.blade.php';
        } elseif ($path == "view-create") {
            return './resources/views/' . $file_name . '/create.blade.php';
        } elseif ($path == "localization") {
            return './resources/lang/' . $file_name . '.php';
        } elseif ($path == "route") {
            return './app/Http/routes.php';
        }
    }