Skip to content

Commit

Permalink
Merge pull request #53 from v1p3r75:fix-path-errors
Browse files Browse the repository at this point in the history
Fixed models and entities path
  • Loading branch information
v1p3r75 authored Mar 10, 2024
2 parents 4f580d0 + c740a7f commit dc13034
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,34 +210,35 @@ function app_path(string $path = "")
}
}

if (!function_exists('app_http_path')) {
function app_http_path(string $path = "")

if (!function_exists('app_models_path')) {
function app_models_path(string $path = "")
{

return app_path("Http/$path");
return app_path("Models/$path");
}
}
if (!function_exists('app_controllers_path')) {
function app_controllers_path(string $path = "")

if (!function_exists('app_entities_path')) {
function app_entities_path(string $path = "")
{

return app_http_path("Controllers/$path");
return app_path("Entities/$path");
}
}

if (!function_exists('app_models_path')) {
function app_models_path(string $path = "")
if (!function_exists('app_http_path')) {
function app_http_path(string $path = "")
{

return app_http_path("Models/$path");
return app_path("Http/$path");
}
}

if (!function_exists('app_entities_path')) {
function app_entities_path(string $path = "")
if (!function_exists('app_controllers_path')) {
function app_controllers_path(string $path = "")
{

return app_http_path("Entities/$path");
return app_http_path("Controllers/$path");
}
}

Expand Down

0 comments on commit dc13034

Please sign in to comment.