1
0
Fork 0

Update Api RelationshipTransformer

This commit is contained in:
Daniel Supernault 2019-09-01 18:27:13 -06:00
parent 34419ce2cc
commit 16b426ec1e
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ class RelationshipTransformer extends Fractal\TransformerAbstract
public function transform(Profile $profile)
{
$auth = Auth::check();
if(!$auth) {
return [];
}
$user = $auth ? Auth::user()->profile : false;
$requested = false;
if($user) {