src/Http/Controllers/ClientController.php
public function forUser(Request $request)
    {
        $userId = $request->user()->getKey();

        return $this->clients->activeForUser($userId)->makeVisible('secret');
    }
public function forUser(Request $request)
    {
        $userId = $request->user()->getKey();

        return $this->clients->activeForUser($userId)->makeVisible('secret');
    }
public function forUser ( Request $ request ) { $ userId = $ request -> user ( ) -> getKey ( ) ; return $ this -> clients -> activeForUser ( $ userId ) -> makeVisible ( 'secret' ) ; }
Get all of the clients for the authenticated user.

@param  \Illuminate\Http\Request  $request
@return \Illuminate\Database\Eloquent\Collection
Get all of the clients for the authenticated user .