public function anyIndex()
    {
        return Factory::factory('ApiResponse', 'nails/module-api')
                      ->setData([
                          'id'         => (int) activeUser('id'),
                          'first_name' => activeUser('first_name') ?: null,
                          'last_name'  => activeUser('last_name') ?: null,
                          'email'      => activeUser('email') ?: null,
                          'username'   => activeUser('username') ?: null,
                          'avatar'     => cdnAvatar() ?: null,
                          'gender'     => activeUser('gender') ?: null,
                      ]);
    }
public function anyIndex()
    {
        return Factory::factory('ApiResponse', 'nails/module-api')
                      ->setData([
                          'id'         => (int) activeUser('id'),
                          'first_name' => activeUser('first_name') ?: null,
                          'last_name'  => activeUser('last_name') ?: null,
                          'email'      => activeUser('email') ?: null,
                          'username'   => activeUser('username') ?: null,
                          'avatar'     => cdnAvatar() ?: null,
                          'gender'     => activeUser('gender') ?: null,
                      ]);
    }
public function anyIndex ( ) { return Factory :: factory ( 'ApiResponse' , 'nails/module-api' ) -> setData ( [ 'id' => ( int ) activeUser ( 'id' ) , 'first_name' => activeUser ( 'first_name' ) ? : null , 'last_name' => activeUser ( 'last_name' ) ? : null , 'email' => activeUser ( 'email' ) ? : null , 'username' => activeUser ( 'username' ) ? : null , 'avatar' => cdnAvatar ( ) ? : null , 'gender' => activeUser ( 'gender' ) ? : null , ] ) ; }
Returns basic details about the currently logged in user
@return ApiResponse
Returns basic details about the currently logged in user