api code global jain

This commit is contained in:
Abhishek Mali
2025-11-05 10:37:10 +05:30
commit 52fe7e2bec
2834 changed files with 1784903 additions and 0 deletions

114
app/Constant/Constant.php Normal file
View File

@@ -0,0 +1,114 @@
<?php
namespace App\Constant;
/**
* Class Constants
* @package App\Constants
*/
class Constant
{
/**
* Boolean status code
*/
public const STATUS_ZERO = 0;
public const STATUS_ONE = 1;
public const STATUS_TWO = 2;
public const STATUS_THREE = 3;
public const STATUS_FOUR = 4;
public const STATUS_FIVE = 5;
public const STATUS_SIX = 6;
public const STATUS_TRUE = true;
public const STATUS_FALSE = false;
public const NULL = null;
public const JOB_TRIES = 3;
public const PAGINATE_LIMIT = 10;
public const MALE = 1;
public const FEMALE = 2;
public const USER_RELATION = 1;
public const SANT_RELATION = 2;
public const POST_DRAFT = 1;
public const POST_PUBLISH = 2;
public const OTP ='OTP';
public const PASSWORD = 'PASSWORD';
public const POST_TYPE_USER = 1;
public const POST_TYPE_SANT = 2;
public const POST_TYPE_SANGH = 3;
/**
* Entity Status
*/
public const STATUS_ACTIVE = 'active';
public const STATUS_INACTIVE = 'inactive';
public const STATUS_CREATE = 'create';
public const STATUS_UPDATE = 'update';
public const STATUS_DELETE = 'delete';
public const STATUS_ALL = 'all';
/**
* Typographical Symbols
*/
public const BACK_SLASH = '\\';
public const SLASH = '/';
public const UNDERSCORE = '_';
public const HYPHEN = '-';
public const AT_SIGN = '@';
public const SPACE = ' ';
/**
* Error Codes
*/
public const CODE_200 = 200;
public const CODE_401 = 401;
public const CODE_403 = 403;
public const CODE_404 = 404;
public const CODE_422 = 422;
public const CODE_500 = 500;
public const CODE_409 = 409;
/**
* Privacy
*/
public const PRIVACY_PUBLIC = 'Public';
public const PRIVACY_FRIENDS = 'Friends';
public const PRIVACY_ONLY_ME = 'Only Me';
/**
* Date format
*/
public const DATE_FORMAT = 'd-m-Y';
public const DATE_TIME_FORMAT = 'Y-m-d H:i:s';
public const TIME_FORMAT = 'H:i:s';
/**
* Roles Name
*/
public const ADMIN = 'Admin';
public const CORE_COMMITTEE = 'Core Committee';
public const SHRAVAK = 'Shravak';
public const SANT = 'Sant';
/**
* Permission Types & Guards
*/
public const TYPE_WEB = '1';
public const TYPE_ADMIN = '2';
public const GUARD_WEB = 'web';
public const GUARD_ADMIN = 'admin';
/**
* Image upload file path
*/
public const SANT_IMAGE_UPLOAD_PATH = 'images/sants/';
public const USER_IMAGE_UPLOAD_PATH = 'images/users/';
public const SANGH_IMAGE_UPLOAD_PATH = 'images/sanghs/';
public const SANGH_MEMBER_IMAGE_UPLOAD_PATH = 'images/sangh-member/';
public const POST_IMAGE_UPLOAD_PATH = 'images/posts/';
public const HOSPITAL_IMAGE_UPLOAD_PATH = 'images/hospitals/';
public const USER_CERTIFICATES_UPLOAD_PATH = 'images/users/certificates/';
}