This file contains hidden or 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
<?php | |
use Laravel\Passport\ClientRepository; | |
train OauthHelper | |
{ | |
public function getOauthUser($password = 'secret', array $attributes = []) | |
{ | |
$user = factory(App\User::class)->create( | |
array_merge($attributes, ['password' => bcrypt($password),]) |
This file contains hidden or 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
<?php | |
trait Http | |
{ | |
function wrapGuzzle($guzzle) | |
{ | |
return new class($guzzle) { | |
private $guzzle; | |
public function __construct($guzzle) |