Skip to content

Commit

Permalink
Merge pull request #42 from puleeno/ft/user-login-feature
Browse files Browse the repository at this point in the history
Ft/user login feature
  • Loading branch information
puleeno authored Apr 13, 2024
2 parents 74472b7 + 267079c commit f6753fd
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 49 deletions.
6 changes: 6 additions & 0 deletions app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,9 @@ function get_active_theme_url($theme = null)
);
}
}

if (!function_exists('config')) {
function config($name, $defaultValue = null) {
return Helper::getConfig($name, $defaultValue);
}
}
47 changes: 0 additions & 47 deletions configs/app.php

This file was deleted.

4 changes: 3 additions & 1 deletion configs/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
'reset' => 'App\Http\Controllers\Auth\ResetPasswordController',
],
'password_timeout' => 10800,
'login_path' => '/auth/login'
'login' => [
'path' => '/auth/login'
]
];
1 change: 0 additions & 1 deletion configs/cli.php

This file was deleted.

5 changes: 5 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
$group->get('/{id}', ViewUserAction::class);
});

var_dump(config('auth.login.path', 'test'));die;
$app->any(config('login.path', '/auth/login'), function(){
die('zo');
});


$app->any(
'/',
Expand Down

0 comments on commit f6753fd

Please sign in to comment.