Class Auth1
Class Auth1 the Aim is to Design Something similar to laravel Auth (but with 1)
public static
|
|
public static
|
|
public static
string
|
|
public static
|
|
public static
boolean
|
|
public static
|
|
public static
mixed
|
#
getAllowedRoleLogin( array $column_role_list = ['admin'], string $column_role_name = 'role', string $on_failed_redirect_to = '/login', callable $onSuccessCallBack = null, callable $onErrorCallBack = null, string $errorMessage = 'You do not have permission to visit this page, Please login again', string $errorTitle = 'Access Denied' )
Put At the top of the Page and Specify The Required Role If Role Failed, The Page will be redirected to login page |
public static
User
|
$USER_CLASS
|
#
User::class
|