src/app/http/controllers/HCAuthController.php
public function showActivation(string $token)
    {
        $message = null;

        $tokenRecord = DB::table('hc_users_activations')->where('token', $token)->first();

        if( is_null($tokenRecord) ) {
            $message = trans('HCACL::users.activation.token_not_exists');
        } else {
            if( strtotime($tokenRecord->created_at) + 60 * 60 * 24 < time() ) {
                $message = trans('HCACL::users.activation.token_expired');
            }
        }

        return hcview('HCACL::auth.activation', ['token' => $token, 'message' => $message]);
    }
public function showActivation(string $token)
    {
        $message = null;

        $tokenRecord = DB::table('hc_users_activations')->where('token', $token)->first();

        if( is_null($tokenRecord) ) {
            $message = trans('HCACL::users.activation.token_not_exists');
        } else {
            if( strtotime($tokenRecord->created_at) + 60 * 60 * 24 < time() ) {
                $message = trans('HCACL::users.activation.token_expired');
            }
        }

        return hcview('HCACL::auth.activation', ['token' => $token, 'message' => $message]);
    }
public function showActivation ( string $ token ) { $ message = null ; $ tokenRecord = DB :: table ( 'hc_users_activations' ) -> where ( 'token' , $ token ) -> first ( ) ; if ( is_null ( $ tokenRecord ) ) { $ message = trans ( 'HCACL::users.activation.token_not_exists' ) ; } else { if ( strtotime ( $ tokenRecord -> created_at ) + 60 * 60 * 24 < time ( ) ) { $ message = trans ( 'HCACL::users.activation.token_expired' ) ; } } return hcview ( 'HCACL::auth.activation' , [ 'token' => $ token , 'message' => $ message ] ) ; }
Show activation page

@param $token
@return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
Show activation page