Commit 3ba89d61 authored by m-wynn's avatar m-wynn

winas_scaffold_helpers 最初コミット

parent 13bc8038
.idea
/vendor/
composer.lock
**/.DS_Store
{
"name": "winas_generator/winas_scaffold_helpers",
"description": "Helper functions for winas scaffold package",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Mitul Golakiya",
"email": "me@mitul.me"
}
],
"require": {
"php": "^8.1.0",
"illuminate/support": "^10.0"
},
"autoload": {
"psr-4": {
"InfyOm\\GeneratorHelpers\\": "src/"
}
}
}
<?php
namespace InfyOm\GeneratorHelpers;
class LaravelUtils
{
/**
* Get full view path relative to the application's configured view path.
*
* @param string $path
*
* @return string
*/
public static function getViewPath($path = '')
{
return implode(DIRECTORY_SEPARATOR, [
config('view.paths')[0] ?? resource_path('views'), $path,
]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment