-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vagrant
committed
Apr 17, 2018
1 parent
eecf18b
commit 2d5da6a
Showing
21 changed files
with
101 additions
and
545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace App\Transformers; | ||
|
||
use App\Models\User; | ||
use League\Fractal\TransformerAbstract; | ||
|
||
class UserTransformer extends TransformerAbstract | ||
{ | ||
public function transform ( User $user ) | ||
{ | ||
return [ | ||
'id' => $user->id , | ||
'name' => $user->name , | ||
'email' => $user->email , | ||
'avatar' => $user->avatar , | ||
'introduction' => $user->introduction , | ||
'bound_phone' => $user->phone ? true : false , | ||
'bound_wechat' => ( $user->weixin_unionid || $user->weixin_openid ) ? true : false , | ||
'last_actived_at' => $user->last_actived_at->toDateTimeString () , | ||
'created_at' => $user->created_at->toDateTimeString () , | ||
'updated_at' => $user->updated_at->toDateTimeString () , | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,7 +169,7 @@ | |
*/ | ||
|
||
'auth' => [ | ||
|
||
'jwt' => 'Dingo\Api\Auth\Provider\JWT', | ||
] , | ||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-11.9 KB
storage/framework/cache/data/85/5f/855f92484c8c414d36c1b25cb24876e30229cbbf
Binary file not shown.
Binary file removed
BIN
-6.59 KB
storage/framework/cache/data/f0/29/f02945dbe518bf3b79c1267d9959c48574b2ebfb
Binary file not shown.
Binary file removed
BIN
-14.8 KB
storage/framework/cache/data/f9/47/f947913e0c6993749ff54a26039f2d18c8a26175
Binary file not shown.
48 changes: 0 additions & 48 deletions
48
storage/framework/views/085b8d01573453f32cedee1224bbb2cc30fcb249.php
This file was deleted.
Oops, something went wrong.
109 changes: 0 additions & 109 deletions
109
storage/framework/views/710bcf0e3348cb9f7a5eb864aea95996ac7ad282.php
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
storage/framework/views/745d1ba2b20ccd7d42b2919201148f1e01c28d73.php
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
storage/framework/views/7a42c9b1c8e24f8d022bdd55b1498079b24d9021.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.