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

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) {