Skip to content

Commit

Permalink
Ensure Layouts folder does not end with Directory Separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurt Friars committed Nov 27, 2023
1 parent 3cfe62b commit 4b0158a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Models/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,16 @@ protected static function bladeLayoutsFolder(Stringable $folder): string
return str(config()->get('view.paths')[0])
->rtrim(DIRECTORY_SEPARATOR)
->append(DIRECTORY_SEPARATOR)
->append($folder->lower());
->append($folder->lower())
->rtrim(DIRECTORY_SEPARATOR);
}

protected static function inertiaLayoutsFolder(Stringable $folder): string
{
return str(resource_path('js'.DIRECTORY_SEPARATOR.'Pages'))
->rtrim(DIRECTORY_SEPARATOR)
->append(DIRECTORY_SEPARATOR)
->append($folder->studly());
->append($folder->studly())
->rtrim(DIRECTORY_SEPARATOR);
}
}

0 comments on commit 4b0158a

Please sign in to comment.