Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openApi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hj
openApi
Commits
9c84835d
Commit
9c84835d
authored
Jul 06, 2025
by
hj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新提交
parent
6c390c10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
0 deletions
+57
-0
server/app/Support/Traits/Helpers.php
server/app/Support/Traits/Helpers.php
+10
-0
server/database/migrations/2025_06_29_005429_create_customer_msds_service_table.php
.../2025_06_29_005429_create_customer_msds_service_table.php
+47
-0
No files found.
server/app/Support/Traits/Helpers.php
View file @
9c84835d
...
@@ -180,4 +180,14 @@ trait Helpers
...
@@ -180,4 +180,14 @@ trait Helpers
return
$str
;
return
$str
;
}
}
public
function
validMobile
(
$mobile
)
{
return
preg_match
(
"/^1[3456789][0-9]
{
9
}
$/"
,
$mobile
);
}
public
function
validEmail
(
$email
)
{
return
preg_match
(
"/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/"
,
$email
);
}
}
}
server/database/migrations/2025_06_29_005429_create_customer_msds_service_table.php
0 → 100644
View file @
9c84835d
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateCustomerMsdsServiceTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'customer_msds_service'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
string
(
'cn_company_name'
)
->
nullable
()
->
comment
(
'中文公司名称'
);
$table
->
string
(
'cn_company_address'
)
->
nullable
()
->
comment
(
'中文公司地址'
);
$table
->
string
(
'cn_company_phone'
)
->
nullable
()
->
comment
(
'中文联系电话'
);
$table
->
string
(
'cn_company_fax'
)
->
nullable
()
->
comment
(
'中文公司传真'
);
$table
->
text
(
'cn_company_logo'
)
->
nullable
()
->
comment
(
'中文公司logo'
);
$table
->
string
(
'en_company_name'
)
->
nullable
()
->
comment
(
'英文公司名称'
);
$table
->
string
(
'en_company_address'
)
->
nullable
()
->
comment
(
'英文公司地址'
);
$table
->
string
(
'en_company_phone'
)
->
nullable
()
->
comment
(
'英文联系电话'
);
$table
->
string
(
'en_company_fax'
)
->
nullable
()
->
comment
(
'英文公司传真'
);
$table
->
text
(
'en_company_logo'
)
->
nullable
()
->
comment
(
'英文公司logo'
);
$table
->
string
(
'token'
)
->
nullable
()
->
comment
(
'用户token'
);
$table
->
text
(
'service_params'
)
->
comment
(
'服务参数'
);
$table
->
unsignedTinyInteger
(
'status'
)
->
nullable
()
->
comment
(
'服务状态'
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'customer_msds_service'
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment