FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SSRPanel/app/Http/Models/Order.php at master · programmejava/SSRPanel · GitHub
programmejava
SSRPanel
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
SSRPanel
/
app
/
Http
/
Models
/
Order.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (25 loc) · 521 Bytes
Breadcrumbs
SSRPanel
/
app
/
Http
/
Models
/
Order.php
Copy path
File metadata and controls
31 lines (25 loc) · 521 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
namespace
App
\
Http
\
Models
;
use
Illuminate
\
Database
\
Eloquent
\
Model
;
/**
* 订单
* Class Order
* @package App\Http\Models
*/
class
Order
extends
Model
{
protected
$
table
=
'
order
'
;
protected
$
primaryKey
=
'
oid
'
;
function
user
()
{
return
$
this
->
hasOne
(User::class,
'
id
'
,
'
user_id
'
);
}
function
goods
()
{
return
$
this
->
hasOne
(Goods::class,
'
id
'
,
'
goods_id
'
);
}
function
coupon
()
{
return
$
this
->
hasOne
(Coupon::class,
'
id
'
,
'
coupon_id
'
);
}
}
Back
|
FazBrowse Home
|
New Git URL